From: Linus Torvalds Date: Fri, 30 Dec 2005 19:55:32 GMT Subject: Re: [PATCH] Make GIT-VERSION-GEN tolerate missing git describe command Message-ID: In-Reply-To: <43B586B4.5030001@research.att.com> On Fri, 30 Dec 2005, John Ellson wrote: > > I checked and that bug has been fixed since the older version of git that > was causing me problems. "git non_existent_command" now returns 1. Ahh, good. > However, the error message was also changed to goto stderr, which it > sounds like you disagree with? Not that I can see: [torvalds@g5 ~]$ git --version git version 1.0.6-g58e3 [torvalds@g5 ~]$ git hjsdhjas > /dev/null [torvalds@g5 ~]$ echo $? 1 so yes, it returns a proper error, and it outputs the help message to stdout, not stderr. Which is fine, because it means that you can indeed do git help | less and it will do the right thing (apart from printing the line git: 'help' is not a git-command which is a bit sad). Linus