checkout: make delayed checkout respect --quiet and --no-progress
commit7a132c628e57b9bceeb88832ea051395c0637b16
authorMatheus Tavares <matheus.bernardino@usp.br>
Thu, 26 Aug 2021 19:10:06 +0000 (26 16:10 -0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Aug 2021 06:15:33 +0000 (26 23:15 -0700)
tree4091c7cac1642aebc146a47af1b3894da10c7b75
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf
checkout: make delayed checkout respect --quiet and --no-progress

The 'Filtering contents...' progress report from delayed checkout is
displayed even when checkout and clone are invoked with --quiet or
--no-progress. Furthermore, it is displayed unconditionally, without
first checking whether stdout is a tty. Let's fix these issues and also
add some regression tests for the two code paths that currently use
delayed checkout: unpack_trees.c:check_updates() and
builtin/checkout.c:checkout_worktree().

Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
entry.c
entry.h
t/t0021-conversion.sh
unpack-trees.c