diff options
author | Victoria Dye <vdye@github.com> | 2022-01-11 18:05:06 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-13 13:49:45 -0800 |
commit | b9ca5e26579ceb820103b49648c01187a4a0dddd (patch) | |
tree | 67e017ba304e500927bdd9bd4540d2f930251473 /Documentation/git-rev-list.txt | |
parent | update-index: integrate with sparse index (diff) | |
download | tgif-b9ca5e26579ceb820103b49648c01187a4a0dddd.tar.xz |
update-index: reduce scope of index expansion in do_reupdate
Replace unconditional index expansion in 'do_reupdate()' with one scoped to
only where a full index is needed. A full index is only required in
'do_reupdate()' when a sparse directory in the index differs from HEAD; in
that case, the index is expanded and the operation restarted.
Because the index should only be expanded if a sparse directory is modified,
add a test ensuring the index is not expanded when differences only exist
within the sparse cone.
Signed-off-by: Victoria Dye <vdye@github.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-rev-list.txt')
0 files changed, 0 insertions, 0 deletions