]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/mv.c
mv: check overwrite for in-to-out move
authorShaoxuan Yuan <shaoxuan.yuan02@gmail.com>
Tue, 9 Aug 2022 12:09:10 +0000 (20:09 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Aug 2022 20:57:50 +0000 (13:57 -0700)
commitda6fe05b3d624ad5b40472eebfe0499c15ecc93d
tree13c13771cca4c1ccd6d4fbcf006c504fb90a1d6d
parent5efd533ed8896592740afe22ac07271497d6db36
mv: check overwrite for in-to-out move

Add checking logic for overwriting when moving from in-cone to
out-of-cone. It is the index version of the original overwrite logic.

Helped-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Shaoxuan Yuan <shaoxuan.yuan02@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mv.c
t/t7002-mv-sparse-checkout.sh