@matheusbsbs / matheus-bagliano / commits / 9e7d501990
Fork 0

builtin-gc.c: deprecate --prune, it now really has no effect

Brandon Casey committed May 9, 2008 at 23:01 UTC 9e7d501990a9c63db264f3185fc311f446196427
1 file changed +1 -2
builtin-gc.c
+1 -2
@@ -219,7 +219,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
219 char buf[80];
220
221 struct option builtin_gc_options[] = {
222 - OPT_BOOLEAN(0, "prune", &prune, "prune unreferenced objects"),
222 + OPT_BOOLEAN(0, "prune", &prune, "prune unreferenced objects (deprecated)"),
223 OPT_BOOLEAN(0, "aggressive", &aggressive, "be more thorough (increased runtime)"),
224 OPT_BOOLEAN(0, "auto", &auto_gc, "enable auto-gc mode"),
225 OPT_BOOLEAN('q', "quiet", &quiet, "suppress progress reports"),
@@ -249,7 +249,6 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
249 /*
250 * Auto-gc should be least intrusive as possible.
251 */
252 - prune = 0;
252 if (!need_to_gc())
253 return 0;
254 fprintf(stderr, "Auto packing your repository for optimum "