Re: StGit hooks
- From
Karl Hasselström <kha@treskal.com>
- Date
- Nov 28, 2007, 15:40 UTC
- Message-ID
- <20071128154059.GA19302@diana.vm.bytemark.co.uk>
- In-Reply-To
- <474D8205.8030401@op5.se>
On 2007-11-28 15:58:13 +0100, Andreas Ericsson wrote:
Show 10 quoted lines
> Jon Smirl wrote: > > > I would expect 'stg init' to switch the branch to using the stgit > > hooks and only those hooks. Branches that were not inited would > > continue to use the user hooks. I don't have any user hooks, but > > this is what I would expect to happen. > > Obviously the stgit-installed hook will have to check if the branch > the user is operating on is managed by stgit before it prevents git > rebase (or whatever it's supposed to do).
Yes. The point is, hooks are per repository, not per branch. So there's no concept of "replacing the hooks for just this one branch".
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle