Re: describe fails on tagless branch
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Feb 7, 2007, 12:37 UTC
- Message-ID
- <eqch3d$5gc$1@sea.gmane.org>
- In-Reply-To
- <200702071201.16931.andyparkins@gmail.com>
Andy Parkins wrote:
Show 6 quoted lines
>> It might not be a bad idea to give '-q' option to make it silent >> when it fails because the commit is indescribable. > > I don't think it's worth it. The "-q" be used only in scripts, and in a > script you would do the whole "2> /dev/null || echo 'No tag found'" thing > anyway.
It would be worth for Perl (for gitweb) to be able to use list form of magic open, without spawning shell (and assorted argument quoting troubles), but silently.
I think it would be fairly easy to add -q option to git wrapper: it would simply set die, error and warn routines and no-op (no-write) versions.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git