mirror of
https://github.com/git/git.git
synced 2024-09-22 09:01:26 +02:00
builtin-gc.c: deprecate --prune, it now really has no effect
This commit is contained in:
parent
a37cce3b23
commit
9e7d501990
@ -219,7 +219,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
|
|||||||
char buf[80];
|
char buf[80];
|
||||||
|
|
||||||
struct option builtin_gc_options[] = {
|
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, "aggressive", &aggressive, "be more thorough (increased runtime)"),
|
||||||
OPT_BOOLEAN(0, "auto", &auto_gc, "enable auto-gc mode"),
|
OPT_BOOLEAN(0, "auto", &auto_gc, "enable auto-gc mode"),
|
||||||
OPT_BOOLEAN('q', "quiet", &quiet, "suppress progress reports"),
|
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.
|
* Auto-gc should be least intrusive as possible.
|
||||||
*/
|
*/
|
||||||
prune = 0;
|
|
||||||
if (!need_to_gc())
|
if (!need_to_gc())
|
||||||
return 0;
|
return 0;
|
||||||
fprintf(stderr, "Auto packing your repository for optimum "
|
fprintf(stderr, "Auto packing your repository for optimum "
|
||||||
|
Loading…
Reference in New Issue
Block a user