diff options
author | Elijah Newren <newren@gmail.com> | 2021-05-20 06:09:34 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-20 15:40:39 +0900 |
commit | d29bd6d73da5c40935713731919b1950692aff15 (patch) | |
tree | 4e947125757b5e9c01c471a74e626acbe3a3e933 /diffcore-break.c | |
parent | t6429: testcases for remembering renames (diff) | |
download | tgif-d29bd6d73da5c40935713731919b1950692aff15.tar.xz |
merge-ort: add data structures for in-memory caching of rename detection
When there are many renames between the old base of a series of commits
and the new base for a series of commits, the sequence of merges
employed to transplant those commits (from a cherry-pick or rebase
operation) will repeatedly detect the exact same renames. This is
wasted effort.
Add data structures which will be used to cache rename detection
results, along with the initialization and deallocation of these data
structures. Future commits will populate these caches, detect the
appropriate circumstances when they can be used, and employ them to
avoid re-detecting the same renames repeatedly.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-break.c')
0 files changed, 0 insertions, 0 deletions