diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-09-24 15:39:13 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-28 10:31:02 -0700 |
commit | 93d2c160411e2a3309a8e2f55eb53bd6c78b7262 (patch) | |
tree | 91303b164be272b64d1b33c4b7048758779f1398 /Documentation/RelNotes/2.24.3.txt | |
parent | rm: skip sparse paths with missing SKIP_WORKTREE (diff) | |
download | tgif-93d2c160411e2a3309a8e2f55eb53bd6c78b7262.tar.xz |
mv: refuse to move sparse paths
Since cmd_mv() does not operate on cache entries and instead directly
checks the filesystem, we can only use path_in_sparse_checkout() as a
mechanism for seeing if a path is sparse or not. Be sure to skip
returning a failure if '-k' is specified.
To ensure that the advice around sparse paths is the only reason a move
failed, be sure to check this as the very last thing before inserting
into the src_for_dst list.
The tests cover a variety of cases such as whether the target is tracked
or untracked, and whether the source or destination are in or outside of
the sparse-checkout definition.
Helped-by: Matheus Tavares Bernardino <matheus.bernardino@usp.br>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/2.24.3.txt')
0 files changed, 0 insertions, 0 deletions