commit-graph: use chunk-format read API
authorDerrick Stolee <redacted>
Thu, 18 Feb 2021 14:07:35 +0000 (14:07 +0000)
committerJunio C Hamano <redacted>
Thu, 18 Feb 2021 21:38:16 +0000 (13:38 -0800)
commit2692c2f6fd1cc9f74e433cb05d5756575682b9ab
tree1d141f1826ded386e56870bbcbb9e58faaef886c
parent5f0879f54b1f5cda348528a49af57a9c3fd620f9
commit-graph: 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(). While the current
implementation loses the duplicate-chunk detection, that will be added
in a future change.

Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
commit-graph.c
t/t5318-commit-graph.sh
git clone https://git.99rst.org/PROJECT