diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-09-08 11:23:58 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-09 15:49:04 -0700 |
commit | 695763679210420656f4125d9706bba25c76ae4b (patch) | |
tree | 3c482768cde72529b4a6bb0f883a7e0f5c7f53af /t/t1420-lost-found.sh | |
parent | merge: make sparse-aware with ORT (diff) | |
download | tgif-695763679210420656f4125d9706bba25c76ae4b.tar.xz |
merge-ort: expand only for out-of-cone conflicts
Merge conflicts happen often enough to want to avoid expanding a sparse
index when they happen, as long as those conflicts are within the
sparse-checkout cone. If a conflict exists outside of the
sparse-checkout cone, then we still need to expand before iterating over
the index entries. This is critical to do in advance because of how the
original_cache_nr is tracked to allow inserting and replacing cache
entries.
Iterate over the conflicted files and check if any paths are outside of
the sparse-checkout cone. If so, then expand the full index.
Add a test that demonstrates that we do not expand the index, even when
we hit a conflict within the sparse-checkout cone.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1420-lost-found.sh')
0 files changed, 0 insertions, 0 deletions