]> git.ipfire.org Git - thirdparty/git.git/commit
clean: integrate with sparse index
authorVictoria Dye <vdye@github.com>
Tue, 11 Jan 2022 18:05:00 +0000 (18:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Jan 2022 21:49:45 +0000 (13:49 -0800)
commit1e9e10e04891a13e5ccd52b36cfadc55dfaa5066
tree652023c91c7f1c4535b63a4ec5b3877a3c63b91e
parent1624333ec1486378c44ce38e4f8ae9d02c07d15a
clean: integrate with sparse index

Remove full index requirement for `git clean` and test to ensure the index
is not expanded in `git clean`. Add to existing test for `git clean` to
verify cleanup of untracked files in sparse directories is consistent
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>
builtin/clean.c
t/t1092-sparse-checkout-compatibility.sh