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

Re: [PATCH v4] checkout: add --progress option

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Nov 1, 2015, 19:29 UTC
Message-ID
<CAPig+cQvsXMqAzV_59sZdqDEh_SRfOMh+BY3XLmzSPdfWwugdg@mail.gmail.com>
In-Reply-To
<20151101191902.GA19594@sigill.intra.peff.net>
On Sun, Nov 1, 2015 at 2:19 PM, Jeff King <peff@peff.net> wrote:
Show 16 quoted lines
> On Sun, Nov 01, 2015 at 12:52:57PM -0500, Eric Sunshine wrote:
>> > +--progress::
>> > +       Progress status is reported on the standard error stream
>> > +       by default when it is attached to a terminal, unless -q
>> > +       is specified. This flag forces progress status even if the
>> > +       standard error stream is not directed to a terminal.
>>
>> What this kind of implies, but neglects to say explicitly, is that the
>> logic implemented by this patch also overrides --quiet. It probably
>> should say so explicitly.
>
> I was the one who suggested originally that --progress should override
> --quiet[1]. However, that was just based on what I thought was
> reasonable. I didn't look at what clone or other commands do.
> Consistency between commands is probably more important than any
> particular behavior.

I did check git-clone during my v4 review, and --progress does override --quiet (see transport.c:transport_set_verbosity()), so your suggestion to make --progress override --quiet in git-checkout at least keeps it consistent.

Aside: Specifying both --quiet and --progress with git-clone doesn't
give great results since (it seems) that no flushing is done until the
newline is emitted, thus you only see the end result rather than a
running progress meter.
> [1] To be honest, this is kind of a crazy corner case anyway. It was
> more just that it has to do _something_.

An alternative would be to error out stating that --quiet and --progress are mutually exclusive.

Previous: Jeff KingNext: Edmundo Carmona Antoranz
Message 5 of 8 in “checkout: add --progress option”
  1. checkout: add --progress optionEdmundo Carmona Antoranz, Nov 1, 2015
  2. Eric SunshineNov 1, 2015
  3. Edmundo Carmona AntoranzNov 1, 2015
  4. Jeff KingNov 1, 2015
  5. Eric SunshineNov 1, 2015
  6. Edmundo Carmona AntoranzNov 1, 2015
  7. Eric SunshineNov 1, 2015
  8. Edmundo Carmona AntoranzNov 1, 2015

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.