From: Junio C Hamano Date: Wed, 02 Apr 2008 20:34:27 GMT Subject: Re: [PATCH 3/3] contrib/hooks: add an example pre-auto-gc hook Message-ID: <7vfxu4808c.fsf@gitster.siamese.dyndns.org> In-Reply-To: <96017502f7bca67a14f9a09d19c8ea42bde78949.1207167342.git.vmiklos@frugalware.org> Miklos Vajna writes: > Hm, I must be crazy when I wrote this. It has three exit codes: > > 0 if on AC power > 1 if not on AC power > 255 if can't tell > > So IMHO the right think to do is to check if the return value is != 1, > and if that's true, then do an exit 0. If it is "can't tell", then it is "can't tell". Don't you want to err on the safe side?