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

Re: git gc logs to standard error

From
RRRichard Rossel <rrossel@inf.utfsm.cl>
Date
Dec 14, 2009, 16:10 UTC
Message-ID
<4B266371.9040106@inf.utfsm.cl>
In-Reply-To
<200912141655.01268.johan@herland.net>
Show 23 quoted lines
>
> On Monday 14 December 2009, Richard Rossel wrote:
>    
>> Hi,
>> I have a question related to the output of git gc logs. Let me
>> explain,
>>
>> [...]
>>
>> I realized that the message are sent to standard error,
>> so the question is why is the reason to do that?
>>
>> The quick solution to my problem of annoying mails is send the output
>> error to /dev/null
>> but what happens when an error really occur, there will be no message
>> to alert me.
>>      
> Try the --quiet parameter to "git gc" (and other git commands).
>
>
> ...Johan
>
>    

Yes, the quiet option works when I do 'git gc', but in the cron file there is no git-gc command, only fetch and reset. I suppose that those commands calls (internally) to git-gc. Also I try with -q option in fetch and reset but without results, the only thing that works was with 2>/dev/null, but as I mention before, is not a good idea because I will miss the real errors messages.

The real question here is why git-gc send those logs to the standard error instead of standard output?

-- Richard Rossel Airsage Inc. Valparaiso - Chile

Previous: Jacob Helwig
Message 8 of 8 in “git gc logs to standard error”
  1. Richard RosselDec 14, 2009
  2. Johan HerlandDec 14, 2009
  3. Jacob HelwigDec 14, 2009
  4. Richard RosselDec 14, 2009
  5. Jacob HelwigDec 14, 2009
  6. Richard RosselDec 14, 2009
  7. Jacob HelwigDec 14, 2009
  8. Richard RosselDec 14, 2009

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.