diff options
| author | Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> | 2022-06-30 10:37:34 +0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-07-01 14:50:16 -0700 |
| commit | 6645b03ca5af33bbce1001257ee22832559ec966 (patch) | |
| tree | 3b8fffe3f89998f3c48bef157a7d4afbcdbaeddf /commit-graph.c | |
| parent | mv: decouple if/else-if checks using goto (diff) | |
| download | git-6645b03ca5af33bbce1001257ee22832559ec966.tar.gz git-6645b03ca5af33bbce1001257ee22832559ec966.zip | |
mv: check if out-of-cone file exists in index with SKIP_WORKTREE bit
Originally, moving a <source> file which is not on-disk but exists in
index as a SKIP_WORKTREE enabled cache entry, "giv mv" command errors
out with "bad source".
Change the checking logic, so that such <source>
file makes "giv mv" command warns with "advise_on_updating_sparse_paths()"
instead of "bad source"; also user now can supply a "--sparse" flag so
this operation can be carried out successfully.
Signed-off-by: Shaoxuan Yuan <shaoxuan.yuan02@gmail.com>
Acked-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
