Skip to content

Commit 1ecc96d

Browse files
committed
bring back old implementation from 65e6496
this also removes terminal_size, although its not large
1 parent fcd585b commit 1ecc96d

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

Cargo.lock

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ tracing = { version = "0.1.37", optional = true }
190190
owo-colors = "4.0.0"
191191

192192
# for config-tree
193-
terminal_size = "0.3.0"
193+
# terminal_size = "0.3.0"
194194

195195
# Avoid pre-compiled binaries, see https://github.com/serde-rs/serde/issues/2538 and https://github.com/serde-rs/serde/pull/2590
196196
serde_derive = ">=1.0.185"

src/plumbing/progress.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use std::{
2-
borrow::Cow,
3-
fmt::{Display, Formatter},
4-
};
1+
use std::fmt::{Display, Formatter};
52

63
use crosstermion::crossterm::style::Stylize;
74
use owo_colors::OwoColorize;
@@ -586,6 +583,12 @@ pub fn show_progress() -> anyhow::Result<()> {
586583
// table
587584
// }
588585
// );
586+
587+
// noted: reverted from https://github.com/Byron/gitoxide/commit/65e64964c7cd151e53e5a7d4b9ba8fabda1c0e16
588+
for Record { config, usage } in sorted {
589+
println!("{} {}: {usage}", usage.icon(), config.bold(),);
590+
}
591+
589592
println!("{buf}");
590593
Ok(())
591594
}

0 commit comments

Comments
 (0)