]> git.ipfire.org Git - thirdparty/git.git/commit
rm: add --sparse option
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 24 Sep 2021 15:39:11 +0000 (15:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Sep 2021 17:31:02 +0000 (10:31 -0700)
commitf9786f9b85a6930a711e0ca8ba317c619f02bd8b
treef9ba93140dab018ca906e371ae93a0b110644229
parent61d450f049eeb61e6cb3c07750e806db29ff0ea3
rm: add --sparse option

As we did previously in 'git add', add a '--sparse' option to 'git rm'
that allows modifying paths outside of the sparse-checkout definition.
The existing checks in 'git rm' are restricted to tracked files that
have the SKIP_WORKTREE bit in the current index. Future changes will
cause 'git rm' to reject removing paths outside of the sparse-checkout
definition, even if they are untracked or do not have the SKIP_WORKTREE
bit.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rm.txt
builtin/rm.c
t/t3602-rm-sparse-checkout.sh