From: Junio C Hamano Date: Sat, 01 Mar 2008 20:24:55 GMT Subject: Re: [PATCH] gc: Add --quiet option Message-ID: <7v4pbqyyy0.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1204322019-17788-1-git-send-email-frank@lichtenheld.de> Frank Lichtenheld writes: > @@ -49,6 +49,9 @@ OPTIONS > required; if not, it exits without performing any work. > Some git commands run `git gc --auto` after performing > operations that could create many loose objects. > + > +--quiet:: > + Suppress all progress reports. > + > Housekeeping is required if there are too many loose objects or > too many packs in the repository. If the number of loose objects Read the surrounding text again. "Housekeeping is..." is talking about the --auto option. I'll move the description of --quiet a bit down. > @@ -197,6 +199,9 @@ int cmd_gc(int argc, const char **argv, const char *prefix) > append_option(argv_repack, buf, MAX_ADD); > } > } > + if (quiet) { > + append_option(argv_repack, "-q", MAX_ADD); > + } No { } around a single statement. No need to resend, as I've already munged your patch and applied. Thanks.