Skip to content

Commit 67ec2c7

Browse files
committed
working progress printing (#470)
Finally, issues due to bugs in prodash.
1 parent 0947c70 commit 67ec2c7

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ git-repository = { version = "^0.24.0", path = "git-repository", default-feature
8686
git-transport-for-configuration-only = { package = "git-transport", optional = true, version = "^0.20.0", path = "git-transport" }
8787

8888
clap = { version = "3.2.5", features = ["derive", "cargo"] }
89-
prodash = { version = "20.1.1", optional = true, default-features = false }
89+
prodash = { version = "20.2.0", optional = true, default-features = false }
9090
atty = { version = "0.2.14", optional = true, default-features = false }
9191
env_logger = { version = "0.9.0", default-features = false }
9292
crosstermion = { version = "0.10.1", optional = true, default-features = false }

git-features/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ crc32fast = { version = "1.2.1", optional = true }
115115
sha1 = { version = "0.10.0", optional = true }
116116

117117
# progress
118-
prodash = { version = "20.1.1", optional = true, default-features = false, features = ["unit-bytes", "unit-human"] }
118+
prodash = { version = "20.2.0", optional = true, default-features = false, features = ["unit-bytes", "unit-human"] }
119119

120120
# pipe
121121
bytes = { version = "1.0.0", optional = true }

gitoxide-core/src/hours.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,11 @@ where
211211
drop(tx);
212212
drop(tx_tree_id);
213213
progress.show_throughput(start);
214+
drop(progress);
214215

215216
let _stats_by_commit_idx = match stat_progress {
216217
Some(mut progress) => {
217-
progress.init(Some(commit_idx as usize), progress::count("commits"));
218+
progress.set_max(Some(commit_idx as usize));
218219
let mut stats = Vec::new();
219220
for handle in stat_threads {
220221
stats.extend(handle.join().expect("no panic")?);

0 commit comments

Comments
 (0)