merge-ort: implement compute_rename_counts()
commit2f620a4f1983efcb70dee55917240b08065f2c4e
authorElijah Newren <newren@gmail.com>
Tue, 19 Jan 2021 19:53:43 +0000 (19 19:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Jan 2021 06:18:55 +0000 (20 22:18 -0800)
tree62455dac8b9daaaa2788890ef014db78e667a4b9
parent9fe37e7bb9e251a3419d93f0090c17df05fafb4e
merge-ort: implement compute_rename_counts()

This function is based on the first half of get_directory_renames() from
merge-recursive.c; as part of the implementation, factor out a routine,
increment_count(), to update the bookkeeping to track the number of
items renamed into new directories.

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