t4151: am --abort will keep dirty index intact
authorPaul Tan <redacted>
Sun, 19 Jul 2015 15:49:09 +0000 (23:49 +0800)
committerJunio C Hamano <redacted>
Mon, 20 Jul 2015 17:51:18 +0000 (10:51 -0700)
commit528484c6450877ecf3eaa09ed7eb2c583c75f378
treeff9d5c6b48b9288a9f2d75019215af82c601717f
parentab156128fa0e3fc70a40f367abdf3f601c3ba611
t4151: am --abort will keep dirty index intact

Since 7b3b7e3 (am --abort: keep unrelated commits since the last failure
and warn, 2010-12-21), git-am --abort will not touch the index if on the
previous invocation, git-am failed because the index is dirty. This is
to ensure that the user's modifications to the index are not discarded.

Add a test for this.

Reviewed-by: Stefan Beller <redacted>
Reviewed-by: Johannes Schindelin <redacted>
Signed-off-by: Paul Tan <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t4151-am-abort.sh
git clone https://git.99rst.org/PROJECT