From b35ddf41eeee1465c9c5a34357664d22b929b79a Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Mon, 29 Sep 2008 18:49:52 +0200 Subject: 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 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