]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5319-multi-pack-index.sh
midx: use chunk-format read API
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 18 Feb 2021 14:07:36 +0000 (14:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 21:38:16 +0000 (13:38 -0800)
commit6ab3b8b8b8dc94c8e4caefb1d368cc704e70d38b
treea7d190a9776dfab282e82f5ff720eca4888f3750
parent2692c2f6fd1cc9f74e433cb05d5756575682b9ab
midx: use chunk-format read API

Instead of parsing the table of contents directly, use the chunk-format
API methods read_table_of_contents() and pair_chunk(). In particular, we
can use the return value of pair_chunk() to generate an error when a
required chunk is missing.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c
t/t5319-multi-pack-index.sh