Code

git-am: Keep index in case of abort with dirty index
authorMichael J Gruber <git@drmicha.warpmail.net>
Thu, 26 Feb 2009 09:52:53 +0000 (10:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Feb 2009 07:06:27 +0000 (23:06 -0800)
commitc767184d8f99404d456b32a2c6c5c41d6db7a847
tree7799df4bddbc19b84121fb512a21d79d8e0bbe6e
parent2591838beece01f98773109a7c6932525be2d144
git-am: Keep index in case of abort with dirty index

git am --abort resets the index unconditionally. But in case a previous
git am exited due to a dirty index it is preferable to keep that index.
Make it so.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh