Skip to content

Commit

Permalink
notes about the split-index extension.
Browse files Browse the repository at this point in the history
It's something we want to read, but not write.
Minimal support, that's all we need. Sparse indices seem to be the
future.
  • Loading branch information
Byron committed Nov 4, 2022
1 parent 1ec27f8 commit ad44982
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/plumbing/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ enum Usage {
NotApplicable {
reason: &'static str,
},
Planned {
note: Option<&'static str>,
},
NotPlanned {
reason: &'static str,
},
Planned {
note: Option<&'static str>,
},
InModule {
name: &'static str,
deviation: Option<&'static str>,
Expand Down Expand Up @@ -514,7 +514,7 @@ static GIT_CONFIG: &[Record] = &[
},
Record {
config: "advice.updateSparsePath",
usage: NotPlanned { reason: "gitoxide does not yet have an 'advice' system" },
usage: NotApplicable { reason: "gitoxide does not yet have an 'advice' system" },
},
Record {
config: "core.sparseCheckout",
Expand All @@ -524,6 +524,18 @@ static GIT_CONFIG: &[Record] = &[
config: "core.sparseCheckoutCone",
usage: Planned { note: Some("non-cone mode is deprecated but should still fail gracefully if encountered") },
},
Record {
config: "core.splitIndex",
usage: Planned { note: Some("needed to be able to read split indices (mandatory extension)") },
},
Record {
config: "splitIndex.maxPercentageChange",
usage: NotPlanned { reason: "seems like it's superseded by sparse indices" },
},
Record {
config: "splitIndex.sharedIndexExpire",
usage: NotPlanned { reason: "seems like it's superseded by sparse indices" },
},
Record {
config: "index.sparse",
usage: Planned { note: Some("together with 'core.sparseCheckout' and 'core.sparseCheckoutCone', configures if the index should be written sparse or not") },
Expand Down

0 comments on commit ad44982

Please sign in to comment.