git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] silence git gc --auto --quiet output
@ 2012-09-24  2:40 Tobias Ulmer
  2012-09-24 18:36 ` Jeff King
  2012-09-24 22:42 ` Junio C Hamano
  0 siblings, 2 replies; 4+ messages in thread
From: Tobias Ulmer @ 2012-09-24  2:40 UTC (permalink / raw)
  To: git; +Cc: gitster

When --quiet is requested, gc --auto should not display messages unless
there is an error.

Signed-off-by: Tobias Ulmer <tobiasu@tmux.org>
---
 builtin/gc.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/builtin/gc.c b/builtin/gc.c
index 6d46608..6be6c8d 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 "
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-24 22:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24  2:40 [PATCH] silence git gc --auto --quiet output Tobias Ulmer
2012-09-24 18:36 ` Jeff King
2012-09-24 22:42 ` Junio C Hamano
2012-09-24 22:53   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).