Skip to content

Commit

Permalink
fix pretty build
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jul 1, 2020
1 parent 5b4979c commit 6adf615
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gitoxide-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn init() -> Result<()> {
pub fn verify_pack_or_pack_index<P>(
path: impl AsRef<Path>,
progress: Option<P>,
statistics: bool,
_statistics: bool,
mut out: impl io::Write,
mut err: impl io::Write,
) -> Result<(git_object::Id, Option<index::PackFileChecksumResult>)>
Expand Down
8 changes: 7 additions & 1 deletion src/plumbing/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ mod options {
/// Verify the integrity of a pack or index file
#[structopt(setting = AppSettings::ColoredHelp)]
VerifyPack {
/// if set, output statistical information about the pack
#[structopt(long, short = "s")]
statistics: bool,

/// if set, verbose progress messages are printed line by line
#[structopt(long, short = "v")]
verbose: bool,
Expand Down Expand Up @@ -87,9 +91,11 @@ pub fn main() -> Result<()> {
path,
verbose,
progress,
statistics,
} => {
let (_keep, progress) = init_progress("verify-pack", verbose, progress);
core::verify_pack_or_pack_index(path, progress, stdout(), stderr())
core::verify_pack_or_pack_index(path, progress, statistics, stdout(), stderr())
.map(|_| ())
}
}?;
Ok(())
Expand Down

0 comments on commit 6adf615

Please sign in to comment.