Skip to content

Commit

Permalink
update progress with intended uses of clone. variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Oct 10, 2022
1 parent f993cd4 commit 8b804a3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/plumbing/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ enum Usage {
Planned {
note: Option<&'static str>,
},
NotPlanned {
reason: &'static str,
},
InModule {
name: &'static str,
deviation: Option<&'static str>,
Expand All @@ -24,6 +27,10 @@ impl Display for Usage {
match self {
Puzzled => f.write_str("❓")?,
NotApplicable => f.write_str("not applicable")?,
NotPlanned { reason } => {
write!(f, "{}", "not planned".blink())?;
write!(f, " ℹ {} ℹ", reason.bright_white())?;
}
Planned { note } => {
write!(f, "{}", "planned".blink())?;
if let Some(note) = note {
Expand All @@ -47,6 +54,7 @@ impl Usage {
Puzzled => "?",
NotApplicable => "❌",
Planned { .. } => "🕒",
NotPlanned { .. } => "🤔",
InModule { deviation, .. } => deviation.is_some().then(|| "👌️").unwrap_or("✅"),
}
}
Expand Down Expand Up @@ -190,6 +198,24 @@ static GIT_CONFIG: &[Record] = &[
deviation: Some("defaults to 'gitoxide@localhost'"),
},
},
Record {
config: "clone.filterSubmodules,",
usage: Planned {
note: Some("currently object filtering isn't support, a prerequisite for this, see --filter=blob:none for more"),
},
},
Record {
config: "clone.defaultRemoteName",
usage: Planned {
note: None,
},
},
Record {
config: "clone.rejectShallow",
usage: NotPlanned {
reason: "it's not a use-case we consider important now, but once that changes it can be implemented",
},
},
Record {
config: "fetch.recurseSubmodules",
usage: Planned {
Expand Down

0 comments on commit 8b804a3

Please sign in to comment.