diff options
author | Shuqi Liang <cheskaqiqi@gmail.com> | 2023-05-09 15:42:40 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-05-09 14:26:34 -0700 |
commit | 0aba1a989c7c577dc1b0b096a12615b7a6747c54 (patch) | |
tree | ef2e75797fa80aa9b71f1dadcd001bcd685e3cdc /rebase.c | |
parent | 7580f92ffa970b9484ac214f7b53cec5e26ca4bc (diff) | |
download | git-0aba1a989c7c577dc1b0b096a12615b7a6747c54.tar.gz |
t1092: add tests for `git diff-files`
Before integrating the 'git diff-files' builtin with the sparse index
feature, add tests to t1092-sparse-checkout-compatibility.sh to ensure
it currently works with sparse-checkout and will still work with sparse
index after that integration.
When adding tests against a sparse-checkout definition, we test two
modes: all changes are within the sparse-checkout cone and some changes
are outside the sparse-checkout cone.
In order to have staged changes outside of the sparse-checkout cone,
make a directory called 'folder1' and copy `a` into 'folder1/a'.
'folder1/a' is identical to `a` in the base commit. These make
'folder1/a' in the index, while leaving it outside of the
sparse-checkout definition. Change content inside 'folder1/a' in order
to test 'folder1/a' being present on-disk with modifications.
Signed-off-by: Shuqi Liang <cheskaqiqi@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'rebase.c')
0 files changed, 0 insertions, 0 deletions