Skip to content

Commit

Permalink
gc: --prune prunes unreferenced objects.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Nov 6, 2007
1 parent 9f12bec commit 0aab4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0aab4ab

Please sign in to comment.