Re: StGit hooks
- From
Karl Hasselström <kha@treskal.com>
- Date
- Nov 28, 2007, 17:21 UTC
- Message-ID
- <20071128172152.GB21310@diana.vm.bytemark.co.uk>
- In-Reply-To
- <474DA01C.8010901@op5.se>
On 2007-11-28 18:06:36 +0100, Andreas Ericsson wrote:
Show 7 quoted lines
> True, but there are ways of figuring out which branch you're on, > using the arguments passed to the hook. > > The rebase hook (which is where this discussion started) gets the > branches passed to "git rebase" as arguments. Figuring out if either > of those branches are actually under stgit control shouldn't be > overly tricky for one so familiar with stgit as yourself.
No, that part is trivial. The hard part is not messing up the user's existing hook scripts.
If I do go ahead and do this, I have a feeling I'll be beefing up git's hook dispatch mechanism first -- if I can get it past Junio, obviously. :-)
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle