merge-ort: flesh out implementation of handle_content_merge()
authorElijah Newren <newren@gmail.com>
Fri, 1 Jan 2021 02:34:43 +0000 (02:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Jan 2021 18:40:45 +0000 (10:40 -0800)
commit62fdec17a111e419b750938d24b6d65e3076b76d
tree1d7b504f8540a3927e1bca23e99a42eb362c9b4a
parent991bbdcab94d93c2a325c4ce74cff139f0f49d97
merge-ort: flesh out implementation of handle_content_merge()

This implementation is based heavily on merge_mode_and_contents() from
merge-recursive.c, though it has some fixes for recursive merges (i.e.
when call_depth > 0), and has a number of changes throughout based on
slight differences in data structures and in how the functions are
called.

It is, however, based on two new helper functions -- merge_3way() and
merge_submodule -- for which we only provide die-not-implemented stubs
at this point.  Future commits will add implementations of these
functions.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-ort.c