Skip to content

Commit

Permalink
gc --auto --quiet: make the notice a bit less verboase
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Oct 21, 2009
1 parent 78d553b commit dad5f89
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions builtin-gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,13 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
*/
if (!need_to_gc())
return 0;
fprintf(stderr, "Auto packing your repository for optimum "
"performance. You may also\n"
"run \"git gc\" manually. See "
"\"git help gc\" for more information.\n");
fprintf(stderr,
"Auto packing the repository for optimum performance.%s\n",
quiet
? ""
: (" You may also\n"
"run \"git gc\" manually. See "
"\"git help gc\" for more information."));
} else
append_option(argv_repack,
prune_expire && !strcmp(prune_expire, "now")
Expand Down

0 comments on commit dad5f89

Please sign in to comment.