diff options
| author | Derrick Stolee <stolee@gmail.com> | 2018-07-12 15:39:28 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-07-20 11:27:28 -0700 |
| commit | 3227565cfdeabcb06eede914d38c8729e6ff1434 (patch) | |
| tree | 9ee4589cd669d497f09fe2e0992b5c2bcf7f2073 /t/helper | |
| parent | 32f3c541e3c8b3ad225c36b1430c9483d0e427ad (diff) | |
| download | git-3227565cfdeabcb06eede914d38c8729e6ff1434.tar.gz | |
midx: read pack names into array
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
| -rw-r--r-- | t/helper/test-read-midx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/helper/test-read-midx.c b/t/helper/test-read-midx.c index 3f2d2cfa78..76a60d7882 100644 --- a/t/helper/test-read-midx.c +++ b/t/helper/test-read-midx.c @@ -6,6 +6,7 @@ static int read_midx_file(const char *object_dir) { + uint32_t i; struct multi_pack_index *m = load_multi_pack_index(object_dir); if (!m) @@ -24,6 +25,10 @@ static int read_midx_file(const char *object_dir) printf("\n"); + printf("packs:\n"); + for (i = 0; i < m->num_packs; i++) + printf("%s\n", m->pack_names[i]); + printf("object-dir: %s\n", m->object_dir); return 0; |
