summaryrefslogtreecommitdiff
path: root/builtin-gc.c
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2008-05-09 23:01:57 -0500
committerJunio C Hamano <gitster@pobox.com>2008-05-11 11:26:07 -0700
commit9e7d501990a9c63db264f3185fc311f446196427 (patch)
tree966a6f713525ec7f629ff8f6a162787860b10a49 /builtin-gc.c
parenta37cce3b23afa2c88baa2f1369c585e05bcf4526 (diff)
downloadgit-9e7d501990a9c63db264f3185fc311f446196427.tar.gz
builtin-gc.c: deprecate --prune, it now really has no effect
Diffstat (limited to 'builtin-gc.c')
-rw-r--r--builtin-gc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin-gc.c b/builtin-gc.c
index 6db2f513b7..48f7d95f97 100644
--- a/builtin-gc.c
+++ b/builtin-gc.c
@@ -219,7 +219,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 objects"),
+ OPT_BOOLEAN(0, "prune", &prune, "prune unreferenced objects (deprecated)"),
OPT_BOOLEAN(0, "aggressive", &aggressive, "be more thorough (increased runtime)"),
OPT_BOOLEAN(0, "auto", &auto_gc, "enable auto-gc mode"),
OPT_BOOLEAN('q', "quiet", &quiet, "suppress progress reports"),
@@ -249,7 +249,6 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
/*
* Auto-gc should be least intrusive as possible.
*/
- prune = 0;
if (!need_to_gc())
return 0;
fprintf(stderr, "Auto packing your repository for optimum "