Re: Silent maintenance
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Aug 14, 2010, 16:41 UTC
- Message-ID
- <AANLkTi=+veDhBEt-tK_qaXhvMVmRCZtW7+O6ig3ujASz@mail.gmail.com>
- In-Reply-To
- <AANLkTimZ4df7wVXSGdNm+vWgAuPVDcUupxEvn9FByx=P@mail.gmail.com>
On Sat, Aug 14, 2010 at 16:33, Valeo de Vries <valeo@valeo.co.cc> wrote:
Show 7 quoted lines
> On 14 August 2010 14:11, Enrico Weigelt <weigelt@metux.de> wrote: >> Hi, >> >> are there some flags to make the maintenance commands like >> git-repack and git-gc silent, so they only output errors ? > > Just redirect stdout to /dev/null and check git's return status, as Ęvar said.
It's better to not redirect anything, set a trap that checks if anything exited with non-zero, and then look at all the output if anything fails.