From 6adf615ed7d6c488c25589940fc0a55bf0fb3d5c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 1 Jul 2020 17:27:45 +0800 Subject: [PATCH] fix pretty build --- gitoxide-core/src/lib.rs | 2 +- src/plumbing/pretty.rs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gitoxide-core/src/lib.rs b/gitoxide-core/src/lib.rs index 4fc9a366e0c..b86677a2822 100644 --- a/gitoxide-core/src/lib.rs +++ b/gitoxide-core/src/lib.rs @@ -10,7 +10,7 @@ pub fn init() -> Result<()> { pub fn verify_pack_or_pack_index

( path: impl AsRef, progress: Option

, - statistics: bool, + _statistics: bool, mut out: impl io::Write, mut err: impl io::Write, ) -> Result<(git_object::Id, Option)> diff --git a/src/plumbing/pretty.rs b/src/plumbing/pretty.rs index d8147171f26..a7ff9b46cd3 100644 --- a/src/plumbing/pretty.rs +++ b/src/plumbing/pretty.rs @@ -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, @@ -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(())