Re: Possible bug in 'git status' exit code is 1 instead of 0
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jan 9, 2007, 18:50 UTC
- Message-ID
- <7vslekkpav.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <e5bfff550701091033x51496b38x6c6f798e8a7ae795@mail.gmail.com>
"Marco Costalba" <mcostalba@gmail.com> writes:
> Ok, I was changing the error detection to check exit status, but it's > definitely better to still check for something written to stdErr > instead.
Non-zero status to indicate there is nothing to commit has always been the way for git-status to report since the very first edition of the command (a3e870f2, May 30 2005), so you should be able to depend on it.