All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Rossel <rrossel@inf.utfsm.cl>
To: git@vger.kernel.org
Subject: git gc logs to standard error
Date: Mon, 14 Dec 2009 11:45:15 -0300	[thread overview]
Message-ID: <4B264F7B.8070504@inf.utfsm.cl> (raw)

Hi,
I have a question related to the output of git gc logs. Let me explain,

I have a git commands in crontab (for redmine purpose) doing this stuff:
' git fetch -q origin && git reset -q --soft refs/remotes/origin/master '
for each project.

The problem is that am getting mail from crontab each time that somebody
do a push to the central server. Its really annoying. I try to avoid 
those messages
redirecting the standard output with no results, then adding a quiet 
option  and no results.
This is the kind of mails that am receiving:


remote: Counting objects: 6, done.
remote: Compressing objects:  25% (1/4)
remote: Compressing objects:  50% (2/4)
remote: Compressing objects:  75% (3/4        )remote:
remote: Compressing objects: 100% (4/4)
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 2), reused 0 (delta 0)
 From git@boss:drivings
   0f35f06..5bc8866  master     -> origin/master


Then I realized that the message is git gc logs looks like, so I did:

$ git gc
Counting objects: 51, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (35/35), done.
Writing objects: 100% (51/51), done.
Total 51 (delta 12), reused 51 (delta 12)

The message are pretty similar, so I sent the logs to dev/null but:

$ git gc >/dev/null
Counting objects: 51, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (35/35), done.
Writing objects: 100% (51/51), done.
Total 51 (delta 12), reused 51 (delta 12)

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.

thanks for your help

saludos.-

--
Richard Rossel
Software Engineer at Airsage Inc.
Valparaiso - Chile

             reply	other threads:[~2009-12-14 15:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14 14:45 Richard Rossel [this message]
2009-12-14 15:55 ` git gc logs to standard error Johan Herland
2009-12-14 16:04   ` Jacob Helwig
2009-12-14 16:23     ` Richard Rossel
2009-12-14 16:28       ` Jacob Helwig
2009-12-14 16:37         ` Richard Rossel
2009-12-14 16:46           ` Jacob Helwig
2009-12-14 16:10   ` Richard Rossel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B264F7B.8070504@inf.utfsm.cl \
    --to=rrossel@inf.utfsm.cl \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.