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

Re: [PATCH] Allow --quiet option to git remote, particularly for `git remote update`

From
Jeff King <peff@peff.net>
Date
Dec 6, 2009, 14:50 UTC
Message-ID
<20091206145000.GC26440@coredump.intra.peff.net>
In-Reply-To
<1260057623-28960-1-git-send-email-alex@chmrr.net>
On Sat, Dec 05, 2009 at 07:00:23PM -0500, Alex Vandiver wrote:
Show 13 quoted lines
> @@ -84,9 +84,12 @@ static int opt_parse_track(const struct option *opt, const char *arg, int not)
>  static int fetch_remote(const char *name)
>  {
>  	const char *argv[] = { "fetch", name, NULL, NULL };
> -	if (verbose) {
> +	if (verbosity > 0) {
>  		argv[1] = "-v";
>  		argv[2] = name;
> +	} else if (verbosity < 0) {
> +		argv[1] = "-q";
> +		argv[2] = name;
>  	}
>  	printf("Updating %s\n", name);
Should --quiet also affect this "Updating %s" line?

Actually, I have often wished for a way to shut up this line but keep fetch at its normal verbosity. Fetch very sanely says nothing if there is nothing to update, but you still get this "Updating" junk line, even if nothing is transferred. But that would probably need an extra "--quiet-remote" option to handle separately from what we pass to fetch.

-Peff
Previous: Alex VandiverNext: Alex Vandiver
Message 4 of 6 in “Allow --quiet option to git remote, particularly for `git remote update`”
  1. Allow --quiet option to git remote, particularly for `git remote update`Alex Vandiver, Dec 6, 2009
  2. Junio C HamanoDec 6, 2009
  3. Alex VandiverDec 7, 2009
  4. Jeff KingDec 6, 2009
  5. Alex VandiverDec 7, 2009
  6. Jeff KingDec 7, 2009

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.