]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5318-commit-graph.sh
commit-graph: check order while reading fanout chunk
authorJeff King <peff@peff.net>
Thu, 9 Nov 2023 07:25:07 +0000 (02:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Nov 2023 10:07:53 +0000 (19:07 +0900)
commit06fb135f8eddc64071a719fe309c771883c07775
treee6dd1ffd2fe9fa5f8f2b3a6b99aa6e90d60d3739
parentd3b6f6c63137b72df5055b71721825e786bcbd6e
commit-graph: check order while reading fanout chunk

We read the fanout chunk, storing a pointer to it, but only confirm that
the entries are monotonic in a final "lite" verification step. Let's
move that into the actual OIDF chunk callback, so that we can report
problems immediately (for all the reasons given in the previous
"commit-graph: abort as soon as we see a bogus chunk" commit).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c
t/t5318-commit-graph.sh