Re: stgit: lost all my patches again
- From
Karl Hasselström <kha@treskal.com>
- Date
- Nov 28, 2007, 06:32 UTC
- Message-ID
- <20071128063245.GA11163@diana.vm.bytemark.co.uk>
- In-Reply-To
- <9e4733910711271859w7b7dc141q93e3c9f67693a54@mail.gmail.com>
On 2007-11-27 21:59:00 -0500, Jon Smirl wrote:
> Karl, Catalin, can stgit install a pre-rebase hook and disable 'git > rebase' when stg is active on the branch? This would keep me from > destroying my patch stack when my fingers get ahead of me. Might be > good to disable anything else that can cause damage too.
Mmmm. We'd have to define "damage"; "stg repair" can take care of quite a lot of things nowadays. Committing new stuff on top of a patch series is no problem, for example, and "git reset --hard HEAD^ && stg repair" is equivalent to "stg pop". I can see how "git rebase" would still be a nuisance, though.
Patch? :-)
Presumably, we'd want the hook to be a Python script, so as to
* not make it more difficult to port StGit to Windows someday;
* make it possible for the hook to call StGit functions; and
* not force the project's contributors to learn more shell scripting
than they have to. :-)--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle