merge-ort: add a handle_deferred_entries() helper function
commite0ef578eae4aea91920ef394a0d38170b39777d1
authorElijah Newren <newren@gmail.com>
Fri, 16 Jul 2021 05:22:34 +0000 (16 05:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Jul 2021 21:47:39 +0000 (20 14:47 -0700)
tree00499f7b08f8ecf28b2740da66e3180b44738224
parentd478f5675923d02d2676bf2e47f0ccdd4dba0da8
merge-ort: add a handle_deferred_entries() helper function

In order to allow trivial directory resolution, we first need to be able
to gather more information to determine if the optimization is safe.  To
enable that, we need a way of deferring the recursion into the directory
until a later time.  Naturally, deferring the entry into a subtree means
that we need some function that will later recurse into the subdirectory
exactly the same way that collect_merge_info_callback() would have done.

Add a helper function that does this.  For now this function is not used
but a subsequent commit will change that.  Future commits will also make
the function sometimes resolve directories instead of traversing inside.

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