[PATCH] silence git gc --auto --quiet output
- From
Tobias Ulmer <tobiasu@tmux.org>
- Date
- Sep 24, 2012, 02:40 UTC
- Message-ID
- <20120924024024.GA12700@tin.tmux.org>
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