From: Junio C Hamano Date: Tue, 6 Nov 2007 00:39:00 +0000 (-0800) Subject: gc: --prune prunes unreferenced objects. X-Git-Tag: v1.5.4-rc0~266 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0aab4abdd4e6461d61ce6cf1392e1d31c4d1573a;p=git.git gc: --prune prunes unreferenced objects. Brandon Casey correctly points out that we repack with -A without --prune and with -a with --prune, so it is not just unreferenced loose objects that are pruned away when the option is given. Signed-off-by: Junio C Hamano --- diff --git a/builtin-gc.c b/builtin-gc.c index c5bce893a..799c26393 100644 --- a/builtin-gc.c +++ b/builtin-gc.c @@ -175,7 +175,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix) char buf[80]; struct option builtin_gc_options[] = { - OPT_BOOLEAN(0, "prune", &prune, "prune unreferenced loose objects"), + OPT_BOOLEAN(0, "prune", &prune, "prune unreferenced objects"), OPT_BOOLEAN(0, "aggressive", &aggressive, "be more thorough (increased runtime)"), OPT_BOOLEAN(0, "auto", &auto_gc, "enable auto-gc mode"), OPT_END()