Skip to content

Commit 6adf615

Browse files
committed
fix pretty build
1 parent 5b4979c commit 6adf615

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: gitoxide-core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub fn init() -> Result<()> {
1010
pub fn verify_pack_or_pack_index<P>(
1111
path: impl AsRef<Path>,
1212
progress: Option<P>,
13-
statistics: bool,
13+
_statistics: bool,
1414
mut out: impl io::Write,
1515
mut err: impl io::Write,
1616
) -> Result<(git_object::Id, Option<index::PackFileChecksumResult>)>

Diff for: src/plumbing/pretty.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ mod options {
2222
/// Verify the integrity of a pack or index file
2323
#[structopt(setting = AppSettings::ColoredHelp)]
2424
VerifyPack {
25+
/// if set, output statistical information about the pack
26+
#[structopt(long, short = "s")]
27+
statistics: bool,
28+
2529
/// if set, verbose progress messages are printed line by line
2630
#[structopt(long, short = "v")]
2731
verbose: bool,
@@ -87,9 +91,11 @@ pub fn main() -> Result<()> {
8791
path,
8892
verbose,
8993
progress,
94+
statistics,
9095
} => {
9196
let (_keep, progress) = init_progress("verify-pack", verbose, progress);
92-
core::verify_pack_or_pack_index(path, progress, stdout(), stderr())
97+
core::verify_pack_or_pack_index(path, progress, statistics, stdout(), stderr())
98+
.map(|_| ())
9399
}
94100
}?;
95101
Ok(())

0 commit comments

Comments
 (0)