Skip to content
  • brian m. carlson's avatar
    rebase--merge: fix --skip with two conflicts in a row · 95104c7e
    brian m. carlson authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarbrian m. carlson <sandals@crustytoothpaste.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    95104c7e