diff options
author | Tobias Ulmer <tobiasu@tmux.org> | 2012-09-24 04:40:24 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-27 17:57:26 -0700 |
commit | df995c7dd21bca9c61f9e5480fdfc1a015b4f1a0 (patch) | |
tree | a470db7543f5f0e397ceac63d4cf26d7334b0079 /builtin/gc.c | |
parent | b5d156c3622fa522966034c78fd6ed9a15504d46 (diff) | |
download | git-df995c7dd21bca9c61f9e5480fdfc1a015b4f1a0.tar.gz |
silence git gc --auto --quiet output
When --quiet is requested, gc --auto should not display messages unless
there is an error.
Signed-off-by: Tobias Ulmer <tobiasu@tmux.org>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/gc.c')
-rw-r--r-- | builtin/gc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin/gc.c b/builtin/gc.c index 6d46608fc9..6be6c8d65b 100644 --- a/builtin/gc.c +++ b/builtin/gc.c @@ -217,9 +217,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix) */ if (!need_to_gc()) return 0; - if (quiet) - fprintf(stderr, _("Auto packing the repository for optimum performance.\n")); - else + if (!quiet) fprintf(stderr, _("Auto packing the repository for optimum performance. You may also\n" "run \"git gc\" manually. See " |