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/