rebase--merge: fix --skip with two conflicts in a row
commit95104c7e257652b82aed089494def344e3938928
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 16 Jun 2014 00:01:25 +0000 (16 00:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jun 2014 20:29:16 +0000 (16 13:29 -0700)
treeee8b3a07a8fe7a334a146110fe69ee2328558ce4
parent34d5217584ee4722d0c0b07ed6c8f1f01ad157c3
rebase--merge: fix --skip with two conflicts in a row

If git rebase --merge encountered a conflict, --skip would not work if the
next commit also conflicted.  The msgnum file would never be updated with
the new patch number, so no patch would actually be skipped, resulting in an
inescapable loop.

Update the msgnum file's value as the first thing in call_merge.  This also
avoids an "Already applied" message when skipping a commit.  There is no
visible change for the other contexts in which call_merge is invoked, as the
msgnum file's value remains unchanged in those situations.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--merge.sh
t/t3402-rebase-merge.sh