From: Matthieu Moy Date: Tue, 10 Aug 2010 06:46:31 GMT Subject: Re: git commit return code Message-ID: In-Reply-To: <4C601F9B.6040102@puffy.pl> Tomasz Pajor writes: > Hello, > > Is this proper behaviour: > > root# su -c "git commit --quiet -a -m \"templates generation\";" > # On branch master > nothing to commit (working directory clean) > root# echo $? > 1 The exit status doesn't seem documented in the manpage, but it's expected behavior that "git commit" refuses to create an empty commit, and it seems sensible to "exit(1)" in this case. -- Matthieu Moy http://www-verimag.imag.fr/~moy/