diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-03-30 13:10:50 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-03-30 12:57:46 -0700 |
commit | e2df6c397206c3c0791fb50466789730e8a334d8 (patch) | |
tree | f30b4a38a965b92384da5358c488449f2e370624 /t/t5515/refs.br-remote-glob-octopus | |
parent | t1092: compare sparse-checkout to sparse-index (diff) | |
download | tgif-e2df6c397206c3c0791fb50466789730e8a334d8.tar.xz |
test-read-cache: print cache entries with --table
This table is helpful for discovering data in the index to ensure it is
being written correctly, especially as we build and test the
sparse-index. This table includes an output format similar to 'git
ls-tree', but should not be compared to that directly. The biggest
reasons are that 'git ls-tree' includes a tree entry for every
subdirectory, even those that would not appear as a sparse directory in
a sparse-index. Further, 'git ls-tree' does not use a trailing directory
separator for its tree rows.
This does not print the stat() information for the blobs. That will be
added in a future change with another option. The tests that are added
in the next few changes care only about the object types and IDs.
However, this future need for full index information justifies the need
for this test helper over extending a user-facing feature, such as 'git
ls-files'.
To make the option parsing slightly more robust, wrap the string
comparisons in a loop adapted from test-dir-iterator.c.
Care must be taken with the final check for the 'cnt' variable. We
continue the expectation that the numerical value is the final argument.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/refs.br-remote-glob-octopus')
0 files changed, 0 insertions, 0 deletions