From: Junio C Hamano Date: Wed, 21 Oct 2009 22:26:10 +0000 (-0700) Subject: gc --auto --quiet: make the notice a bit less verboase X-Git-Tag: v1.6.5.3~17^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dad5f89fc568639c43bdbf344411757adf39d636;p=git.git 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 --- diff --git a/builtin-gc.c b/builtin-gc.c index 7d3e9cc7a..093517e39 100644 --- a/builtin-gc.c +++ b/builtin-gc.c @@ -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")