gc --auto --quiet: make the notice a bit less verboase
When "gc --auto --quiet" decides there is something to do, it tells the user what it is doing, as it is going to make the user wait for a bit. But the message was a bit too long. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
78d553b7d7
commit
dad5f89fc5
11
builtin-gc.c
11
builtin-gc.c
@ -216,10 +216,13 @@ 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, "Auto packing your repository for optimum "
|
fprintf(stderr,
|
||||||
"performance. You may also\n"
|
"Auto packing the repository for optimum performance.%s\n",
|
||||||
"run \"git gc\" manually. See "
|
quiet
|
||||||
"\"git help gc\" for more information.\n");
|
? ""
|
||||||
|
: (" You may also\n"
|
||||||
|
"run \"git gc\" manually. See "
|
||||||
|
"\"git help gc\" for more information."));
|
||||||
} else
|
} else
|
||||||
append_option(argv_repack,
|
append_option(argv_repack,
|
||||||
prune_expire && !strcmp(prune_expire, "now")
|
prune_expire && !strcmp(prune_expire, "now")
|
||||||
|
Loading…
Reference in New Issue
Block a user