diff options
author | Victoria Dye <vdye@github.com> | 2022-03-01 20:24:28 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-01 12:36:01 -0800 |
commit | 2c66a7c8cefa27ef56efbc76bdfe13696b9dac3a (patch) | |
tree | 98b7b1ab12650fda87d8ca3ea89843a45fd516cb /unpack-trees.c | |
parent | read-tree: expand sparse checkout test coverage (diff) | |
download | tgif-2c66a7c8cefa27ef56efbc76bdfe13696b9dac3a.tar.xz |
read-tree: integrate with sparse index
Enable use of sparse index in 'git read-tree'. The integration in this patch
is limited only to usage of 'read-tree' that does not need additional
functional changes for the sparse index to behave as expected (i.e., produce
the same user-facing results as a non-sparse index sparse-checkout). To
ensure no unexpected behavior occurs, the index is explicitly expanded when:
* '--no-sparse-checkout' is specified (because it disables sparse-checkout)
* '--prefix' is specified (if the prefix is inside a sparse directory, the
prefixed tree cannot be properly traversed)
* two or more <tree-ish> arguments are specified ('twoway_merge' and
'threeway_merge' do not yet support merging sparse directories)
Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
0 files changed, 0 insertions, 0 deletions