merge-ort: add data structures for an alternate tree traversal
authorElijah Newren <newren@gmail.com>
Thu, 11 Mar 2021 00:38:26 +0000 (00:38 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Mar 2021 06:18:04 +0000 (22:18 -0800)
commitbeb06145f83813505397d420bddef0231c127426
tree1bc1a2e055a6fdc83ad4a55dda8a44f628ed522b
parent32a56dfb99b6e26151626eb9763d30b3b731891f
merge-ort: add data structures for an alternate tree traversal

In order to determine whether directory rename detection is needed, we
as a pre-requisite need a way to traverse through all the files in a
given tree before visiting any directories within that tree.
traverse_trees() only iterates through the entries in the order they
appear, so add some data structures that will store all the entries as
we iterate through them in traverse_trees(), which will allow us to
re-traverse them in our desired order.

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