Re: stgit: lost all my patches again

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: stgit: lost all my patches again

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:54

"Jon Smirl" [off-list ref] writes:
Can we add a check in "git rebase" so that it will refuse to run if
stg is active?
The pre-rebase hook has been there since early Feb 2006.

Re: stgit: lost all my patches again

From: Jon Smirl <hidden>
Date: 2016-06-15 22:43:54

On 11/27/07, Junio C Hamano [off-list ref] wrote:
"Jon Smirl" [off-list ref] writes:
quoted
Can we add a check in "git rebase" so that it will refuse to run if
stg is active?
The pre-rebase hook has been there since early Feb 2006.
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.

-- 
Jon Smirl
jonsmirl@gmail.com

Re: stgit: lost all my patches again

From: Karl Hasselström <hidden>
Date: 2016-06-15 22:43:54

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help