commit-graph: verify corrupt OID fanout and lookup
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 27 Jun 2018 13:24:35 +0000 (09:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jun 2018 17:27:05 +0000 (10:27 -0700)
commit9bda84678950c95e4d81cad60e5210c001fbe119
tree5ead15e8c78149f54a1c2645d83742e756a01904
parent2bd0365f374558ca053412966b51fe01885ea3b5
commit-graph: verify corrupt OID fanout and lookup

In the commit-graph file, the OID fanout chunk provides an index into
the OID lookup. The 'verify' subcommand should find incorrect values
in the fanout.

Similarly, the 'verify' subcommand should find out-of-order values in
the OID lookup.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c
t/t5318-commit-graph.sh