Unified · Split
| @@ -1248,7 +1248,6 @@ dependencies = [ · 1247 unmodified lines | |||
| 1248 | "owo-colors", | 1248 | "owo-colors", |
| 1249 | "prodash 28.0.0", | 1249 | "prodash 28.0.0", |
| 1250 | "serde_derive", | 1250 | "serde_derive", |
| 1251 | "terminal_size", | ||
| 1252 | "time", | 1251 | "time", |
| 1253 | "tracing", | 1252 | "tracing", |
| 1254 | "tracing-forest", | 1253 | "tracing-forest", |
| @@ -4593,16 +4592,6 @@ dependencies = [ · 3338 unmodified lines | |||
| 4593 | "winapi-util", | 4592 | "winapi-util", |
| 4594 | ] | 4593 | ] |
| 4595 | 4594 | ||
| 4596 | [[package]] | ||
| 4597 | name = "terminal_size" | ||
| 4598 | version = "0.3.0" | ||
| 4599 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 4600 | checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" | ||
| 4601 | dependencies = [ | ||
| 4602 | "rustix 0.38.31", | ||
| 4603 | "windows-sys 0.48.0", | ||
| 4604 | ] | ||
| 4605 | |||
| 4606 | [[package]] | 4595 | [[package]] |
| 4607 | name = "thiserror" | 4596 | name = "thiserror" |
| 4608 | version = "1.0.56" | 4597 | version = "1.0.56" |
| @@ -190,7 +190,7 @@ tracing = { version = "0.1.37", optional = true } · 189 unmodified lines | |||
| 190 | owo-colors = "4.0.0" | 190 | owo-colors = "4.0.0" |
| 191 | 191 | ||
| 192 | # for config-tree | 192 | # for config-tree |
| 193 | terminal_size = "0.3.0" | 193 | # terminal_size = "0.3.0" |
| 194 | 194 | ||
| 195 | # Avoid pre-compiled binaries, see https://github.com/serde-rs/serde/issues/2538 and https://github.com/serde-rs/serde/pull/2590 | 195 | # Avoid pre-compiled binaries, see https://github.com/serde-rs/serde/issues/2538 and https://github.com/serde-rs/serde/pull/2590 |
| 196 | serde_derive = ">=1.0.185" | 196 | serde_derive = ">=1.0.185" |
| @@ -1,7 +1,4 @@ | |||
| 1 | use std::{ | 1 | use std::fmt::{Display, Formatter}; |
| 2 | borrow::Cow, | ||
| 3 | fmt::{Display, Formatter}, | ||
| 4 | }; | ||
| 5 | 2 | ||
| 6 | use crosstermion::crossterm::style::Stylize; | 3 | use crosstermion::crossterm::style::Stylize; |
| 7 | use owo_colors::OwoColorize; | 4 | use owo_colors::OwoColorize; |
| @@ -586,6 +583,12 @@ pub fn show_progress() -> anyhow::Result<()> { · 578 unmodified lines | |||
| 586 | // table | 583 | // table |
| 587 | // } | 584 | // } |
| 588 | // ); | 585 | // ); |
| 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 | |||
| 589 | println!("{buf}"); | 592 | println!("{buf}"); |
| 590 | Ok(()) | 593 | Ok(()) |
| 591 | } | 594 | } |