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

Re: [PATCH] checkout: make delayed checkout respect --quiet and --no-progress

From
Jeff King <peff@peff.net>
Date
Aug 27, 2021, 02:26 UTC
Message-ID
<YShNV1isGfxO1QZn@coredump.intra.peff.net>
In-Reply-To
<CAHd-oW7Z8TXZTRmSN0FkCpqEzz7-chJwYbDqyJaQ_ETW8xoG+Q@mail.gmail.com>
On Thu, Aug 26, 2021 at 11:26:46AM -0300, Matheus Tavares Bernardino wrote:
Show 13 quoted lines
> > > +for mode in pathspec branch
> > > +do
> > > +     case "$mode" in
> > > +     pathspec) opt='.' ;;
> > > +     branch) opt='-f HEAD' ;;
> > > +     esac
> > > +
> > > +     test_expect_success PERL,TTY "delayed checkout shows progress by default only on tty ($mode checkout)" '
> >
> > All of the PERL,TTY can just be TTY, since TTY itself checks PERL.
> 
> I don't mind changing that, but isn't it a bit clearer for readers to
> have both dependencies explicitly?

No just clearer, but the perl dependency of TTY is an implementation detail. It's conceivable that we could end up converting it to another language (e.g., I recall there are at least some races with the stdin mechanism, according to [0]).

-Peff
[0] https://lore.kernel.org/git/20190520125016.GA13474@sigill.intra.peff.net/
Previous: Matheus Tavares BernardinoNext: Matheus Tavares
Message 6 of 7 in “Bug report: 'filtering content' delayed progress message does not respect --quiet”
  1. Sean AllredMar 21, 2021
  2. Jeff KingMar 26, 2021
  3. checkout: make delayed checkout respect --quiet and --no-progressMatheus Tavares, Aug 25, 2021
  4. Ævar Arnfjörð BjarmasonAug 25, 2021
  5. Matheus Tavares BernardinoAug 26, 2021
  6. Jeff KingAug 27, 2021
  7. checkout: make delayed checkout respect --quiet and --no-progressMatheus Tavares, Aug 26, 2021

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.