Skip to content

Commit

Permalink
update progress with gitoxide.userAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Nov 10, 2022
1 parent 709a732 commit 1c012f4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/plumbing/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,15 @@ impl Tabled for Record {

fn fields(&self) -> Vec<String> {
let mut tokens = self.config.split('.');
let mut buf = vec![tokens.next().expect("present").bold().to_string()];
let mut buf = vec![{
let name = tokens.next().expect("present");
if name == "gitoxide" {
name.bold().green()
} else {
name.bold()
}
.to_string()
}];
buf.extend(tokens.map(ToOwned::to_owned));

vec![self.usage.icon().into(), buf.join("."), self.usage.to_string()]
Expand Down Expand Up @@ -720,8 +728,9 @@ static GIT_CONFIG: &[Record] = &[
},
Record {
config: "gitoxide.userAgent",
usage: Planned {
note: Some("the first variable solely for gitoxide.")
usage: InModule {
name: "remote::connection",
deviation: None
}
},
];
Expand Down

0 comments on commit 1c012f4

Please sign in to comment.