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

Skip to content

Commit 8b804a3

Browse files
committed
update progress with intended uses of clone. variables
1 parent f993cd4 commit 8b804a3

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/plumbing/progress.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ enum Usage {
1010
Planned {
1111
note: Option<&'static str>,
1212
},
13+
NotPlanned {
14+
reason: &'static str,
15+
},
1316
InModule {
1417
name: &'static str,
1518
deviation: Option<&'static str>,
@@ -24,6 +27,10 @@ impl Display for Usage {
2427
match self {
2528
Puzzled => f.write_str("❓")?,
2629
NotApplicable => f.write_str("not applicable")?,
30+
NotPlanned { reason } => {
31+
write!(f, "{}", "not planned".blink())?;
32+
write!(f, " ℹ {} ℹ", reason.bright_white())?;
33+
}
2734
Planned { note } => {
2835
write!(f, "{}", "planned".blink())?;
2936
if let Some(note) = note {
@@ -47,6 +54,7 @@ impl Usage {
4754
Puzzled => "?",
4855
NotApplicable => "❌",
4956
Planned { .. } => "🕒",
57+
NotPlanned { .. } => "🤔",
5058
InModule { deviation, .. } => deviation.is_some().then(|| "👌️").unwrap_or("✅"),
5159
}
5260
}
@@ -190,6 +198,24 @@ static GIT_CONFIG: &[Record] = &[
190198
deviation: Some("defaults to 'gitoxide@localhost'"),
191199
},
192200
},
201+
Record {
202+
config: "clone.filterSubmodules,",
203+
usage: Planned {
204+
note: Some("currently object filtering isn't support, a prerequisite for this, see --filter=blob:none for more"),
205+
},
206+
},
207+
Record {
208+
config: "clone.defaultRemoteName",
209+
usage: Planned {
210+
note: None,
211+
},
212+
},
213+
Record {
214+
config: "clone.rejectShallow",
215+
usage: NotPlanned {
216+
reason: "it's not a use-case we consider important now, but once that changes it can be implemented",
217+
},
218+
},
193219
Record {
194220
config: "fetch.recurseSubmodules",
195221
usage: Planned {

0 commit comments

Comments
 (0)