Re: Dangerous "git am --abort" behavior

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Monday, December 20, 2010 - 5:30 pm

Linus Torvalds <torvalds@linux-foundation.org> writes:


I never got into this as I use bash completion in my PS1 in the real life,
but I've seen this happen while playing around, and I can see myself
easily getting hurt by this behaviour without status in PS1.


I sometimes wanted "--clean" myself, so it is a no-brainer to decide that
it would be a good thing to add.

The last time I thought about this issue, I wasn't sure about "compare
with the last commit"---mostly because it wasn't clear what ramifications
it would have.  When you get refusal from "am --abort", how would you
recover from it?

Back then my tentative conclusion was actually to get rid of "am --abort"
and give "am --clean", making the final "reset HEAD~$n" the responsiblity
of the user.  But I forgot to pursue it.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Dangerous &quot;git am --abort&quot; behavior, Linus Torvalds, (Mon Dec 20, 11:31 am)
Re: Dangerous &quot;git am --abort&quot; behavior, Adam Monsen, (Mon Dec 20, 12:35 pm)
Re: Dangerous &quot;git am --abort&quot; behavior, Drew Northup, (Mon Dec 20, 2:52 pm)
Re: Dangerous &quot;git am --abort&quot; behavior, Adam Monsen, (Mon Dec 20, 3:04 pm)
Re: Dangerous "git am --abort" behavior, Junio C Hamano, (Mon Dec 20, 5:30 pm)
Re: Dangerous &quot;git am --abort&quot; behavior, Junio C Hamano, (Tue Dec 21, 11:29 am)
Re: Dangerous &quot;git am --abort&quot; behavior, Linus Torvalds, (Tue Dec 21, 11:46 am)
Re: Dangerous &quot;git am --abort&quot; behavior, Junio C Hamano, (Tue Dec 21, 11:47 am)
Re: Dangerous &quot;git am --abort&quot; behavior, Peter Krefting, (Wed Dec 22, 2:49 am)
Re: Dangerous &quot;git am --abort&quot; behavior, Steven E. Harris, (Thu Dec 23, 3:06 pm)
Re: Dangerous &quot;git am --abort&quot; behavior, Junio C Hamano, (Thu Dec 23, 3:32 pm)
Re: Dangerous &quot;git am --abort&quot; behavior, Steven E. Harris, (Thu Dec 23, 5:24 pm)