]> git.ipfire.org Git - thirdparty/git.git/commit
test-tool: don't force full index
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 30 Mar 2021 13:10:51 +0000 (13:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Mar 2021 19:57:46 +0000 (12:57 -0700)
commit2782db3eed808c2a5097ccd5af813d3338c5f313
tree6ac56cfd3574b97ba9e7f9a1471d2b6aba3ba663
parente2df6c397206c3c0791fb50466789730e8a334d8
test-tool: don't force full index

We will use 'test-tool read-cache --table' to check that a sparse
index is written as part of init_repos. Since we will no longer always
expand a sparse index into a full index, add an '--expand' parameter
that adds a call to ensure_full_index() so we can compare a sparse index
directly against a full index, or at least what the in-memory index
looks like when expanded in this way.

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