git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Frank Lichtenheld
Message 2 of 2 in “gc: Add --quiet option”
  1. gc: Add --quiet optionFrank Lichtenheld, Feb 29, 2008
  2. Junio C HamanoMar 1, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.