From: Michael J Gruber Date: Mon, 29 Sep 2008 16:49:52 +0000 (+0200) Subject: make prune report removed objects on -v X-Git-Tag: v1.6.1-rc1~168^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b35ddf41eeee1465c9c5a34357664d22b929b79a;p=git.git make prune report removed objects on -v This adds an option "-v" which makes "git prune" more verbose: It outputs all removed objects while removing them. Signed-off-by: Michael J Gruber Signed-off-by: Shawn O. Pearce --- diff --git a/Documentation/git-prune.txt b/Documentation/git-prune.txt index 54f1dab38..da6055d4b 100644 --- a/Documentation/git-prune.txt +++ b/Documentation/git-prune.txt @@ -8,7 +8,7 @@ git-prune - Prune all unreachable objects from the object database SYNOPSIS -------- -'git-prune' [-n] [--expire ] [--] [...] +'git-prune' [-n] [-v] [--expire ] [--] [...] DESCRIPTION ----------- @@ -34,6 +34,9 @@ OPTIONS Do not remove anything; just report what it would remove. +-v:: + Report all removed objects. + \--:: Do not interpret any more arguments as options. diff --git a/builtin-prune.c b/builtin-prune.c index 1663f8bdb..7b4ec80e6 100644 --- a/builtin-prune.c +++ b/builtin-prune.c @@ -7,10 +7,11 @@ #include "parse-options.h" static const char * const prune_usage[] = { - "git prune [-n] [--expire