git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Valeo de VriesNext: Jonathan Nieder
Message 4 of 9 in “Silent maintenance”
  1. Enrico WeigeltAug 14, 2010
  2. Ævar Arnfjörð BjarmasonAug 14, 2010
  3. Valeo de VriesAug 14, 2010
  4. Ævar Arnfjörð BjarmasonAug 14, 2010
  5. Jonathan NiederAug 14, 2010
  6. Ævar Arnfjörð BjarmasonAug 14, 2010
  7. Jeff KingAug 14, 2010
  8. Ævar Arnfjörð BjarmasonAug 15, 2010
  9. Enrico WeigeltAug 15, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.