commit-graph: verify required chunks are present
commit2bd0365f374558ca053412966b51fe01885ea3b5
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 27 Jun 2018 13:24:34 +0000 (27 09:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jun 2018 17:27:05 +0000 (27 10:27 -0700)
tree2772d51cfa1a2524630a6abac73dcfcf9e4eee3b
parentd9b9f8a6fd146ee1069e1cc4cf16eba76bdc1e08
commit-graph: verify required chunks are present

The commit-graph file requires the following three chunks:

* OID Fanout
* OID Lookup
* Commit Data

If any of these are missing, then the 'verify' subcommand should
report a failure. This includes the chunk IDs malformed or the
chunk count is truncated.

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