Skip to content

Commit dad5f89

Browse files
committed
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 <[email protected]>
1 parent 78d553b commit dad5f89

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

builtin-gc.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,13 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
216216
*/
217217
if (!need_to_gc())
218218
return 0;
219-
fprintf(stderr, "Auto packing your repository for optimum "
220-
"performance. You may also\n"
221-
"run \"git gc\" manually. See "
222-
"\"git help gc\" for more information.\n");
219+
fprintf(stderr,
220+
"Auto packing the repository for optimum performance.%s\n",
221+
quiet
222+
? ""
223+
: (" You may also\n"
224+
"run \"git gc\" manually. See "
225+
"\"git help gc\" for more information."));
223226
} else
224227
append_option(argv_repack,
225228
prune_expire && !strcmp(prune_expire, "now")

0 commit comments

Comments
 (0)