]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/repack.c: extract showing progress to a variable
authorTaylor Blau <me@ttaylorr.com>
Wed, 29 Sep 2021 01:55:15 +0000 (21:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Sep 2021 04:20:56 +0000 (21:20 -0700)
commit5f18e31f4642f4daf398d0903e3fb3233b86f174
tree4d7df4c5a5a0859113a0d7d4f56569ce0096480a
parenta169166d2bc855f7cc0bbf79039b48da91782d95
builtin/repack.c: extract showing progress to a variable

We only ask whether stderr is a tty before calling
'prune_packed_objects()', but the subsequent patch will add another use.

Extract this check into a variable so that both can use it without
having to call 'isatty()' twice.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c