chunk-format: restore duplicate chunk checks
authorDerrick Stolee <redacted>
Thu, 18 Feb 2021 14:07:38 +0000 (14:07 +0000)
committerJunio C Hamano <redacted>
Thu, 18 Feb 2021 21:38:16 +0000 (13:38 -0800)
commit5387fefadc121cb142e513557997415f2e75188a
tree787fd9e4f37248b07148c892791b45711a533360
parent329fac3a366244ceac599ab63cd338bcc6a1dcb4
chunk-format: restore duplicate chunk checks

Before refactoring into the chunk-format API, the commit-graph parsing
logic included checks for duplicate chunks. It is unlikely that we would
desire a chunk-based file format that allows duplicate chunk IDs in the
table of contents, so add duplicate checks into
read_table_of_contents().

Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
chunk-format.c
git clone https://git.99rst.org/PROJECT