t1092: compare sparse-checkout to sparse-index
commitecfc47c0667f9a580abaca0472f68efa0a8784e8
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 30 Mar 2021 13:10:49 +0000 (30 13:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Mar 2021 19:57:45 +0000 (30 12:57 -0700)
tree121fb3200bffc68e147b2b42834e1999d954e711
parent4300f8442a276aa48d327b8371af9c2917bd3d5a
t1092: compare sparse-checkout to sparse-index

Add a new 'sparse-index' repo alongside the 'full-checkout' and
'sparse-checkout' repos in t1092-sparse-checkout-compatibility.sh. Also
add run_on_sparse and test_sparse_match helpers. These helpers will be
used when the sparse index is implemented.

Add the GIT_TEST_SPARSE_INDEX environment variable to enable the
sparse-index by default. This can be enabled across all tests, but that
will only affect cases where the sparse-checkout feature is enabled.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/README
t/t1092-sparse-checkout-compatibility.sh