From: Michael J Gruber Date: Mon, 29 Sep 2008 16:49:52 GMT Subject: [PATCH] make prune report removed objects on -v Message-ID: <1222706992-15531-1-git-send-email-git@drmicha.warpmail.net> 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 --- Documentation/git-prune.txt | 5 ++++- builtin-prune.c | 10 +++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/git-prune.txt b/Documentation/git-prune.txt index 54f1dab..da6055d 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 1663f8b..7b4ec80 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