Skip to content

Commit

Permalink
bring back old implementation from 65e6496
Browse files Browse the repository at this point in the history
this also removes terminal_size, although its not large
  • Loading branch information
benmkw committed Feb 16, 2024
1 parent fcd585b commit 1ecc96d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
11 changes: 0 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ tracing = { version = "0.1.37", optional = true }
owo-colors = "4.0.0"

# for config-tree
terminal_size = "0.3.0"
# terminal_size = "0.3.0"

# Avoid pre-compiled binaries, see https://github.com/serde-rs/serde/issues/2538 and https://github.com/serde-rs/serde/pull/2590
serde_derive = ">=1.0.185"
Expand Down
11 changes: 7 additions & 4 deletions src/plumbing/progress.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use std::{
borrow::Cow,
fmt::{Display, Formatter},
};
use std::fmt::{Display, Formatter};

use crosstermion::crossterm::style::Stylize;
use owo_colors::OwoColorize;
Expand Down Expand Up @@ -586,6 +583,12 @@ pub fn show_progress() -> anyhow::Result<()> {
// table
// }
// );

// noted: reverted from https://github.com/Byron/gitoxide/commit/65e64964c7cd151e53e5a7d4b9ba8fabda1c0e16
for Record { config, usage } in sorted {
println!("{} {}: {usage}", usage.icon(), config.bold(),);
}

println!("{buf}");
Ok(())
}

0 comments on commit 1ecc96d

Please sign in to comment.