git-gc: improve wording of --auto notification
The previous message had too much of a "boy, you should really turn off this annoying gc" flair to it. Instead, let's make sure the user understands what is happening, that they can run it themselves, and where to find more info. Suggested by Brian Gernhardt. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
de61e42b53
commit
dd8b883ab9
@ -206,9 +206,9 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
|
|||||||
if (!need_to_gc())
|
if (!need_to_gc())
|
||||||
return 0;
|
return 0;
|
||||||
fprintf(stderr, "Packing your repository for optimum "
|
fprintf(stderr, "Packing your repository for optimum "
|
||||||
"performance. If you would rather run\n"
|
"performance. You may also\n"
|
||||||
"\"git gc\" by hand, run \"git config gc.auto 0\" "
|
"run \"git gc\" manually. See "
|
||||||
"to disable automatic cleanup.\n");
|
"\"git help gc\" for more information.\n");
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* Use safer (for shared repos) "-A" option to
|
* Use safer (for shared repos) "-A" option to
|
||||||
|
Loading…
Reference in New Issue
Block a user