Re: [PATCH] Allow update hooks to update refs on their own
- From
Steven Grimm <koreth@midwinter.com>
- Date
- Nov 27, 2007, 21:23 UTC
- Message-ID
- <C1C5EF48-689A-4C6D-9EBB-01AFD252C0DF@midwinter.com>
- In-Reply-To
- <fii1od$d38$1@ger.gmane.org>
On Nov 27, 2007, at 1:21 PM, Jakub Narebski wrote:
Show 5 quoted lines
>> +The hook may optionally choose to update the ref on its own, e.g., >> +if it needs to modify incoming revisions in some way. If it updates >> +the ref, it should exit with a status of 100. > > Why 100, and not for example 127, 128 or -1?
Because those seemed much more likely to be used by existing hook scripts to denote an error condition, and I wanted to reduce the chance that this would break existing scripts.
-Steve