Skip to content

Commit 0aab4ab

Browse files
committed
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 <gitster@pobox.com>
1 parent 9f12bec commit 0aab4ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
175175
char buf[80];
176176

177177
struct option builtin_gc_options[] = {
178-
OPT_BOOLEAN(0, "prune", &prune, "prune unreferenced loose objects"),
178+
OPT_BOOLEAN(0, "prune", &prune, "prune unreferenced objects"),
179179
OPT_BOOLEAN(0, "aggressive", &aggressive, "be more thorough (increased runtime)"),
180180
OPT_BOOLEAN(0, "auto", &auto_gc, "enable auto-gc mode"),
181181
OPT_END()

0 commit comments

Comments
 (0)