From: Josh England Date: Tue, 25 Sep 2007 21:47:20 GMT Subject: Re: [PATCH] post-checkout hook, and related docs and tests Message-ID: <1190756840.6078.109.camel@beauty> In-Reply-To: <7v4phi5t98.fsf@gitster.siamese.dyndns.org> On Tue, 2007-09-25 at 14:29 -0700, Junio C Hamano wrote: > "Josh England" writes: > > > So this leads to my next question: Should the post-merge patch be > > brought in under this same umbrella to form a single post-checkout hook, > > or should it stay a separate hook? > > I think it is called would be inconvenient for the callee if you > call the same hook without telling the hook script why it is > called, so if you go in the unification route the caller of the > unified hook needs to supply an extra parameter and existing > hooks if any need to be updated --- neither sounds like a very > idea. The writer of the hooks however can choose to call one > from the other if he wants the same action for both hooks, so it > looks to me that separate hooks for separate purposes is the way > to go. Yeah, I agree. I'll rework post-checkout and send in both again. -JE