]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/gc.c
maintenance: add --quiet option
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 17 Sep 2020 18:11:43 +0000 (18:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Sep 2020 18:30:05 +0000 (11:30 -0700)
commit3ddaad0e06035a752c9010dcd5094b37262080fb
tree98d25f3096405ddac2685bf270ef0ff22f4208ff
parent2057d75038541cd16debb1c55f3f897fd244965c
maintenance: add --quiet option

Maintenance activities are commonly used as steps in larger scripts.
Providing a '--quiet' option allows those scripts to be less noisy when
run on a terminal window. Turn this mode on by default when stderr is
not a terminal.

Pipe the option to the 'git gc' child process.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-maintenance.txt
builtin/gc.c
t/t7900-maintenance.sh