summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Victoria Dye <vdye@github.com>2021-11-23 00:20:32 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-11-24 16:32:38 -0800
commitb93fea08d24b0ceb498445cc80c91e26a6bff29b (patch)
tree7f8a5a42a3c0faae3c1127e165eae5199319f531 /t
parentsparse-index: avoid unnecessary cache tree clearing (diff)
downloadtgif-b93fea08d24b0ceb498445cc80c91e26a6bff29b.tar.xz
sparse-index: add ensure_correct_sparsity function
The `ensure_correct_sparsity` function is intended to provide a means of aligning the in-core index with the sparsity required by the repository settings and other properties of the index. The function first checks whether a sparse index is allowed (per repository & sparse checkout pattern settings). If the sparse index may be used, the index is converted to sparse; otherwise, it is explicitly expanded with `ensure_full_index`. Helped-by: Junio C Hamano <gitster@pobox.com> 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')
0 files changed, 0 insertions, 0 deletions