]> git.ipfire.org Git - thirdparty/git.git/commit - rerere.c
rerere: factor out handle_conflict function
authorThomas Gummerer <t.gummerer@gmail.com>
Sun, 5 Aug 2018 17:20:34 +0000 (18:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Aug 2018 20:22:35 +0000 (13:22 -0700)
commitc0f16f8e14432b9b6a1b21885080eab6388d887e
treed665d09bcfc5f26595c790b3eeeb1d6ba102c461
parent221444f5d11a8fac84514447c2902430e237759c
rerere: factor out handle_conflict function

Factor out the handle_conflict function, which handles a single
conflict in a path.  This is in preparation for a subsequent commit,
where this function will be re-used.

Note that this does change the behaviour of 'git rerere' slightly.
Where previously we'd consider all files where an unmatched conflict
marker is found as invalid, we now only consider files invalid when
the "ours" conflict marker ("<<<<<<< <text>") is unmatched, not when
other conflict markers (e.g. "=======") is unmatched.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
rerere.c