From: Joey Hess Date: Sat, 20 Oct 2007 17:25:22 +0000 (-0400) Subject: add an example of how to run git w/o getting random crap on stderr X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/9af9dee7005d509c835876e75c711455cce23d8d?ds=sidebyside add an example of how to run git w/o getting random crap on stderr git is a real mess when it comes to a) parsing command line options consistently, b) outputting non-errors to stderr :-( --- diff --git a/debian/changelog b/debian/changelog index 0828531..acdb9ee 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,7 +13,7 @@ mr (0.5) UNRELEASED; urgency=low [ Alexander Wirt ] * Add support for mercurial. - -- Alexander Wirt Sat, 20 Oct 2007 11:03:27 +0200 + -- Joey Hess Sat, 20 Oct 2007 13:24:15 -0400 mr (0.4) unstable; urgency=low diff --git a/mrconfig b/mrconfig index 8e18756..a2fcc24 100644 --- a/mrconfig +++ b/mrconfig @@ -1,6 +1,9 @@ # An example config file for the mr(1) command. [DEFAULT] +# This hack is here because git-pull stupidly outputs tag info to stderr. +# Shut it up but let real errors through, for use in cron. +quietupdate = mr -n update 3>&1 1>/dev/null 2>&3 | egrep -v '(storing tag|tag: )' # Teach mr how to run svn cleanup. cleanup = if [ -d "$MR_REPO"/.svn ]; then svn cleanup ; fi # And how to run git gc and push.