diffcore-rename: compute dir_rename_counts in stages
authorElijah Newren <newren@gmail.com>
Sat, 27 Feb 2021 00:30:46 +0000 (00:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 27 Feb 2021 01:53:12 +0000 (17:53 -0800)
commit1ad69eb0dcfa61e175e7540517bd4e6e7a66822a
tree0b7a23d41522bd072450b71b804c3a906507a14e
parentb1473019e8b2b4aafdf578ab3dade36c9c4d419d
diffcore-rename: compute dir_rename_counts in stages

Compute dir_rename_counts based just on exact renames to start, as that
can provide us useful information in find_basename_matches().  This is
done by moving the code from compute_dir_rename_counts() into
initialize_dir_rename_info(), resulting in it being computed earlier and
based just on exact renames.  Since that's an incomplete result, we
augment the counts via calling update_dir_rename_counts() after each
basename-guide and inexact rename detection match is found.

Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diffcore-rename.c