From: Karl Hasselström Date: Wed, 28 Nov 2007 12:19:05 GMT Subject: Re: StGit hooks Message-ID: <20071128121905.GA15953@diana.vm.bytemark.co.uk> In-Reply-To: <474D5482.5020609@op5.se> On 2007-11-28 12:44:02 +0100, Andreas Ericsson wrote: > Karl Hasselström wrote: > > > Also, if StGit is to set up hooks automatically (commit hooks, > > pre-rebase hooks, whatever), it'd be nice to not have to worry > > about overwriting any existing hooks the user might have. But git > > currently allows only one hook script per hook, right? > > Yes, but you can obviously call any number of scripts and programs > from within the hook that git executes. That doesn't help here, however, since the user and not StGit "owns" the "top-level" hook. StGit would have to rely on the user having installed a specific kind of multiplexer as a hook script (e.g. one that executes everything under .git/hooks/$hook.d/). Or it would have to install it itself, and hope that moving any existing hook to the subdirectory where the multiplexer looks for hooks doesn't break anything. Both solutions are problematic. -- Karl Hasselström, kha@treskal.com www.treskal.com/kalle