merge-recursive: make a helper function for cleanup for handle_renames
commit84a548dedd6520b73eb8764a8bebd8ede81620c8
authorElijah Newren <newren@gmail.com>
Wed, 14 Feb 2018 18:51:54 +0000 (14 10:51 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Feb 2018 21:02:52 +0000 (14 13:02 -0800)
treed6a40d701bdb815ea486f190630c57c21ff4ca68
parent3f646871a31d95576e11e74fc5db2e3ed2380b52
merge-recursive: make a helper function for cleanup for handle_renames

In anticipation of more involved cleanup to come, make a helper function
for doing the cleanup at the end of handle_renames.  Rename the already
existing cleanup_rename[s]() to final_cleanup_rename[s](), name the new
helper initial_cleanup_rename(), and leave the big comment in the code
about why we can't do all the cleanup at once.

Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c