Re: [PATCH] gc: Add --quiet option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 1, 2008, 20:24 UTC
- Message-ID
- <7v4pbqyyy0.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <1204322019-17788-1-git-send-email-frank@lichtenheld.de>
Frank Lichtenheld <frank@lichtenheld.de> writes:
Show 10 quoted lines
> @@ -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.
Show 7 quoted lines
> @@ -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.