]> git.99rst.org Git - git.git/commit
mv: update sparsity after moving from out-of-cone to in-cone
authorShaoxuan Yuan <redacted>
Thu, 30 Jun 2022 02:37:32 +0000 (10:37 +0800)
committerJunio C Hamano <redacted>
Fri, 1 Jul 2022 21:50:16 +0000 (14:50 -0700)
commit707fa2f76ac77f441578943be56e5a4a3ee8c3c5
tree29886e65a05957d9a0ba4851f22553577b312d88
parent1143cc01b722225b041eb5db0bd733bdb4549949
mv: update sparsity after moving from out-of-cone to in-cone

Originally, "git mv" a sparse file from out-of-cone to
in-cone does not update the moved file's sparsity (remove its
SKIP_WORKTREE bit). And the corresponding cache entry is, unexpectedly,
not checked out in the working tree.

Update the behavior so that:
1. Moving from out-of-cone to in-cone removes the SKIP_WORKTREE bit from
   corresponding cache entry.
2. The moved cache entry is checked out in the working tree to reflect
   the updated sparsity.

Helped-by: Victoria Dye <redacted>
Signed-off-by: Shaoxuan Yuan <redacted>
Acked-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/mv.c
git clone https://git.99rst.org/PROJECT