Subject: Re: [PATCH 3/3] contrib/hooks: add an example pre-auto-gc hook

From: Junio C Hamano <[email-masked]>
Date: Wed, 02 Apr 2008 13:34:27 -0700

Miklos Vajna <[email-masked]> 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?