diff options
author | 2018-04-19 10:58:00 -0700 | |
---|---|---|
committer | 2018-04-20 10:44:15 +0900 | |
commit | f172589e599fca939ab6bb5f2dae4d58f6d201fc (patch) | |
tree | 0bb29658339b0574eaab2075c4f4090962852a3f /t/t4121-apply-diffs.sh | |
parent | merge-recursive: move the get_renames() function (diff) | |
download | tgif-f172589e599fca939ab6bb5f2dae4d58f6d201fc.tar.xz |
merge-recursive: introduce new functions to handle rename logic
The amount of logic in merge_trees() relative to renames was just a few
lines, but split it out into new handle_renames() and cleanup_renames()
functions to prepare for additional logic to be added to each. No code or
logic changes, just a new place to put stuff for when the rename detection
gains additional checks.
Note that process_renames() records pointers to various information (such
as diff_filepairs) into rename_conflict_info structs. Even though the
rename string_lists are not directly used once handle_renames() completes,
we should not immediately free the lists at the end of that function
because they store the information referenced in the rename_conflict_info,
which is used later in process_entry(). Thus the reason for a separate
cleanup_renames().
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4121-apply-diffs.sh')
0 files changed, 0 insertions, 0 deletions