diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-12-22 14:20:54 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-22 11:42:40 -0800 |
commit | 3a9a6ac5d9df68152795e66acba02afd928bf705 (patch) | |
tree | 7e0bf834a6442fdbd15d0039e7a67019660d088d /t/chainlint/loop-in-if.test | |
parent | ls-files: add --sparse option (diff) | |
download | tgif-3a9a6ac5d9df68152795e66acba02afd928bf705.tar.xz |
t1092: replace 'read-cache --table' with 'ls-files --sparse'
Now that 'git ls-files --sparse' exists, we can use it to verify the
state of a sparse index instead of 'test-tool read-cache table'. Replace
these usages within t1092-sparse-checkout-compatibility.sh.
The important changes are due to the different output format. We need to
use the '--stage' output to get a file mode and OID, but it also
includes a stage value and drops the object type. This leads to some
differences in how we handle looking for specific entries.
Some places where we previously looked for no 'tree' entries, we can
instead directly compare the output across the repository with a sparse
index and the one without.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/chainlint/loop-in-if.test')
0 files changed, 0 insertions, 0 deletions