From df995c7dd21bca9c61f9e5480fdfc1a015b4f1a0 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Mon, 24 Sep 2012 04:40:24 +0200 Subject: 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 Acked-by: Jeff King Signed-off-by: Junio C Hamano --- builtin/gc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'builtin/gc.c') 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 " -- cgit v1.2.3