p2000: add test for 'git sparse-checkout [add|set]'
commitb0b40c0468abd09cc0fa64da02a92d798e25d47d
authorDerrick Stolee <derrickstolee@github.com>
Mon, 23 May 2022 13:48:45 +0000 (23 13:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 May 2022 18:08:22 +0000 (23 11:08 -0700)
tree6cad4329a6a0bdcafa6dac77ed770d41cf14aa6b
parentac8acb4f2c70dd95c582bd5d4fb4f689f82ff3c6
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 <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p2000-sparse-operations.sh