Skip to content

Commit 1c012f4

Browse files
committed
update progress with gitoxide.userAgent
1 parent 709a732 commit 1c012f4

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

Diff for: src/plumbing/progress.rs

+12-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,15 @@ impl Tabled for Record {
7171

7272
fn fields(&self) -> Vec<String> {
7373
let mut tokens = self.config.split('.');
74-
let mut buf = vec![tokens.next().expect("present").bold().to_string()];
74+
let mut buf = vec![{
75+
let name = tokens.next().expect("present");
76+
if name == "gitoxide" {
77+
name.bold().green()
78+
} else {
79+
name.bold()
80+
}
81+
.to_string()
82+
}];
7583
buf.extend(tokens.map(ToOwned::to_owned));
7684

7785
vec![self.usage.icon().into(), buf.join("."), self.usage.to_string()]
@@ -720,8 +728,9 @@ static GIT_CONFIG: &[Record] = &[
720728
},
721729
Record {
722730
config: "gitoxide.userAgent",
723-
usage: Planned {
724-
note: Some("the first variable solely for gitoxide.")
731+
usage: InModule {
732+
name: "remote::connection",
733+
deviation: None
725734
}
726735
},
727736
];

0 commit comments

Comments
 (0)