summaryrefslogtreecommitdiff
path: root/t/t1051-large-conversion.sh
diff options
context:
space:
mode:
authorLibravatar Victoria Dye <vdye@github.com>2022-01-11 18:05:03 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-01-13 13:49:45 -0800
commit35682ada44554e136677649ac3da8c92342cdae2 (patch)
treea170aaa8b6a2a3d88deb62bd83e5c13ddea72bc6 /t/t1051-large-conversion.sh
parentcheckout-index: add --ignore-skip-worktree-bits option (diff)
downloadtgif-35682ada44554e136677649ac3da8c92342cdae2.tar.xz
checkout-index: integrate with sparse index
Add repository settings to allow usage of the sparse index. When using the `--all` option, sparse directories are ignored by default due to the `skip-worktree` flag, so there is no need to expand the index. If `--ignore-skip-worktree-bits` is specified, the index is expanded in order to check out all files. When checking out individual files, existing behavior in a full index is to exit with an error if a directory is specified (as the directory name will not match an index entry). However, it is possible in a sparse index to match a directory name to a sparse directory index entry, but checking out that sparse directory still results in an error on checkout. To reduce some potential confusion for users, `checkout_file(...)` explicitly exits with an informative error if provided with a sparse directory name. The test corresponding to this scenario verifies the error message, which now differs between sparse index and non-sparse index checkouts. 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 't/t1051-large-conversion.sh')
0 files changed, 0 insertions, 0 deletions