diff options
author | Victoria Dye <vdye@github.com> | 2021-11-23 00:20:32 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-11-24 16:32:38 -0800 |
commit | b93fea08d24b0ceb498445cc80c91e26a6bff29b (patch) | |
tree | 7f8a5a42a3c0faae3c1127e165eae5199319f531 /t/t3437-rebase-fixup-options.sh | |
parent | sparse-index: avoid unnecessary cache tree clearing (diff) | |
download | tgif-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/t3437-rebase-fixup-options.sh')
0 files changed, 0 insertions, 0 deletions