From: Michele Ballabio Date: Sun, 23 Mar 2008 20:50:29 GMT Subject: [PATCH 2/2] builtin-prune.c: fix object parsing and use parse_options() Message-ID: <200803232150.29971.barra_cuda@katamail.com> git-prune used to remove loose objects whether they were specified in the command line or not. This patch makes git-prune behave as stated in the manpage: it does not prune any listed head nor reachable objects; the parsing machinery now uses parse_options(). Signed-off-by: Michele Ballabio --- builtin-prune.c | 50 ++++++++++++++++++++++++++++++-------------------- t/t5304-prune.sh | 2 +- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/builtin-prune.c b/builtin-prune.c index bb8ead9..7b3e15d 100644 --- a/builtin-prune.c +++ b/builtin-prune.c @@ -4,8 +4,12 @@ #include "revision.h" #include "builtin.h" #include "reachable.h" +#include "parse-options.h" -static const char prune_usage[] = "git-prune [-n]"; +static const char * const prune_usage[] = { + "git-prune [-n] [--expire