Skip to content

Commit b0b40c0

Browse files
derrickstoleegitster
authored andcommitted
p2000: add test for 'git sparse-checkout [add|set]'
The sparse-checkout builtin is almost completely integrated with the sparse index, allowing the sparse-checkout boundary to be modified without expanding a sparse index to a full one. Add a test to p2000-sparse-operations.sh that adds a directory to the sparse-checkout definition, then removes it. Using both operations is important to ensure that the operation is doing the same work in each repetition as well as leaving the test repo in a good state for later tests. Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ac8acb4 commit b0b40c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/perf/p2000-sparse-operations.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ test_perf_on_all git add -A
110110
test_perf_on_all git add .
111111
test_perf_on_all git commit -a -m A
112112
test_perf_on_all git checkout -f -
113+
test_perf_on_all "git sparse-checkout add f2/f3/f1 && git sparse-checkout set $SPARSE_CONE"
113114
test_perf_on_all git reset
114115
test_perf_on_all git reset --hard
115116
test_perf_on_all git reset -- does-not-exist

0 commit comments

Comments
 (0)