summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorTobias Ulmer <tobiasu@tmux.org>2012-09-24 04:40:24 +0200
committerJunio C Hamano <gitster@pobox.com>2012-09-27 17:57:26 -0700
commitdf995c7dd21bca9c61f9e5480fdfc1a015b4f1a0 (patch)
treea470db7543f5f0e397ceac63d4cf26d7334b0079 /builtin
parentb5d156c3622fa522966034c78fd6ed9a15504d46 (diff)
downloadgit-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')
-rw-r--r--builtin/gc.c4
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 "