summaryrefslogtreecommitdiff
path: root/t/t6133-pathspec-rev-dwim.sh
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2021-09-24 15:39:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-28 17:31:02 (GMT)
commit0299a69694fcf486a0880439bb4dacfafe3ffc38 (patch)
tree2e719f647be34a55ec6c560202b2a4c5e5ffc735 /t/t6133-pathspec-rev-dwim.sh
parent49fdd51a235fe2ca91a6d1b16315204f0f016a96 (diff)
downloadgit-0299a69694fcf486a0880439bb4dacfafe3ffc38.zip
git-0299a69694fcf486a0880439bb4dacfafe3ffc38.tar.gz
git-0299a69694fcf486a0880439bb4dacfafe3ffc38.tar.bz2
add: implement the --sparse option
We previously modified 'git add' to refuse updating index entries outside of the sparse-checkout cone. This is justified to prevent users from accidentally getting into a confusing state when Git removes those files from the working tree at some later point. Unfortunately, this caused some workflows that were previously possible to become impossible, especially around merge conflicts outside of the sparse-checkout cone. These were documented in tests within t1092. We now re-enable these workflows using a new '--sparse' option to 'git add'. This allows users to signal "Yes, I do know what I'm doing with these files," and accept the consequences of the files leaving the worktree later. We delay updating the advice message until implementing a similar option in 'git rm' and 'git mv'. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6133-pathspec-rev-dwim.sh')
0 files changed, 0 insertions, 0 deletions