From 8b804a31cb20a5264311f0b6ba02f857bea933ad Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 10 Oct 2022 11:08:00 +0800 Subject: [PATCH] update progress with intended uses of `clone.` variables --- src/plumbing/progress.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/plumbing/progress.rs b/src/plumbing/progress.rs index eddd738a07c..e39e26afc22 100644 --- a/src/plumbing/progress.rs +++ b/src/plumbing/progress.rs @@ -10,6 +10,9 @@ enum Usage { Planned { note: Option<&'static str>, }, + NotPlanned { + reason: &'static str, + }, InModule { name: &'static str, deviation: Option<&'static str>, @@ -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 { @@ -47,6 +54,7 @@ impl Usage { Puzzled => "?", NotApplicable => "❌", Planned { .. } => "🕒", + NotPlanned { .. } => "🤔", InModule { deviation, .. } => deviation.is_some().then(|| "👌️").unwrap_or("✅"), } } @@ -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 {