Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad44982

Browse files
committed
notes about the split-index extension.
It's something we want to read, but not write. Minimal support, that's all we need. Sparse indices seem to be the future.
1 parent 1ec27f8 commit ad44982

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

src/plumbing/progress.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ enum Usage {
99
NotApplicable {
1010
reason: &'static str,
1111
},
12-
Planned {
13-
note: Option<&'static str>,
14-
},
1512
NotPlanned {
1613
reason: &'static str,
1714
},
15+
Planned {
16+
note: Option<&'static str>,
17+
},
1818
InModule {
1919
name: &'static str,
2020
deviation: Option<&'static str>,
@@ -514,7 +514,7 @@ static GIT_CONFIG: &[Record] = &[
514514
},
515515
Record {
516516
config: "advice.updateSparsePath",
517-
usage: NotPlanned { reason: "gitoxide does not yet have an 'advice' system" },
517+
usage: NotApplicable { reason: "gitoxide does not yet have an 'advice' system" },
518518
},
519519
Record {
520520
config: "core.sparseCheckout",
@@ -524,6 +524,18 @@ static GIT_CONFIG: &[Record] = &[
524524
config: "core.sparseCheckoutCone",
525525
usage: Planned { note: Some("non-cone mode is deprecated but should still fail gracefully if encountered") },
526526
},
527+
Record {
528+
config: "core.splitIndex",
529+
usage: Planned { note: Some("needed to be able to read split indices (mandatory extension)") },
530+
},
531+
Record {
532+
config: "splitIndex.maxPercentageChange",
533+
usage: NotPlanned { reason: "seems like it's superseded by sparse indices" },
534+
},
535+
Record {
536+
config: "splitIndex.sharedIndexExpire",
537+
usage: NotPlanned { reason: "seems like it's superseded by sparse indices" },
538+
},
527539
Record {
528540
config: "index.sparse",
529541
usage: Planned { note: Some("together with 'core.sparseCheckout' and 'core.sparseCheckoutCone', configures if the index should be written sparse or not") },

0 commit comments

Comments
 (0)