Thread (6 messages) flat view 6 messages, 5 authors, 2016-06-15

Re: Dangerous "git am --abort" behavior

From: Peter Krefting <hidden>
Date: 2016-06-15 22:50:17

Linus Torvalds:
I just noticed this, and I wonder if it has bitten me before without
me noticing: "git am --abort" can be really dangerous.
Indeed, I have been bitten by that several times, having worked heavily on 
applying patches at $dayjob for a while now. I have taken to habit to always 
do the same "rm -rf .git/rebase-apply" that you mention before doing anything 
involving am or rebase...
Or maybe we could just introduce a new "git am --clean" that just flushes 
any old pending state (ie does that "clean_abort" thing, which is 
basically just the "rm -rf" I've done by hand).
That would be very helpful, as manually doing a "rm -rf" inside the .git 
directory does make me nervous each time I do it...

-- 
\\// Peter - http://www.softwolves.pp.se/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help