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

Re: [PATCH] Teach/Fix pull/fetch -q/-v options

From
TATuncer Ayaz <tuncer.ayaz@gmail.com>
Date
Nov 15, 2008, 17:42 UTC
Message-ID
<4ac8254d0811150942s7d4f5444xbc2b068beecbb44f@mail.gmail.com>
In-Reply-To
<7v7i7594cx.fsf@gitster.siamese.dyndns.org>
On Sat, Nov 15, 2008 at 2:15 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 17 quoted lines
>> @@ -637,9 +638,9 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
>>               remote = remote_get(argv[0]);
>>
>>       transport = transport_get(remote, remote->url[0]);
>> -     if (verbose >= 2)
>> +     if (verbosity == VERBOSE)
>>               transport->verbose = 1;
>> -     if (quiet)
>> +     if (verbosity == QUIET)
>>               transport->verbose = -1;
>>       if (upload_pack)
>>               set_option(TRANS_OPT_UPLOADPACK, upload_pack);
>
> In the original code, the variable verbose can be ">= 2" when "-v -v" is
> given, so transport->verbose is not turned on with a single "-v" alone
> (this correctly mimics the original behaviour in the scripted version).
>

Doesn't this also mean that we need to be able to concatenate multiple -v options in git-pull.sh similar to what one of the first versions of my patch did?

<snip>
Previous: Tuncer AyazNext: Tuncer Ayaz
Message 6 of 7 in “Teach/Fix pull/fetch -q/-v options”
  1. Teach/Fix pull/fetch -q/-v optionsTuncer Ayaz, Nov 15, 2008
  2. Junio C HamanoNov 15, 2008
  3. Tuncer AyazNov 15, 2008
  4. Junio C HamanoNov 15, 2008
  5. Tuncer AyazNov 15, 2008
  6. Tuncer AyazNov 15, 2008
  7. Tuncer AyazNov 15, 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.