summaryrefslogtreecommitdiff
path: root/xdiff
diff options
context:
space:
mode:
authorLibravatar Elijah Newren <newren@gmail.com>2020-12-13 08:04:26 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-12-13 14:18:20 -0800
commitef2b369387004f4f11497a55174d0d9859549054 (patch)
tree0882bc79a8b7c8e18a2a77ca8149490e5dc0ac5f /xdiff
parenttree: enable cmp_cache_name_compare() to be used elsewhere (diff)
downloadtgif-ef2b369387004f4f11497a55174d0d9859549054.tar.xz
merge-ort: add implementation of record_conflicted_index_entries()
After checkout(), the working tree has the appropriate contents, and the index matches the working copy. That means that all unmodified and cleanly merged files have correct index entries, but conflicted entries need to be updated. We do this by looping over the conflicted entries, marking the existing index entry for the path with CE_REMOVE, adding new higher order staged for the path at the end of the index (ignoring normal index sort order), and then at the end of the loop removing the CE_REMOVED-marked cache entries and sorting the index. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff')
0 files changed, 0 insertions, 0 deletions