commit-graph: fix GRAPH_MIN_SIZE
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 27 Jun 2018 13:24:28 +0000 (09:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jun 2018 17:27:04 +0000 (10:27 -0700)
commit0e3b97cccbec2bd01eae4b3267bf00a9bfb277d8
treeb1d12f58caab5825b3da68d23ce0b4a44893c8a8
parent883e5c7fe90aa2ef9f6efd1ef476ca281d09e79b
commit-graph: fix GRAPH_MIN_SIZE

The GRAPH_MIN_SIZE macro should be the smallest size of a parsable
commit-graph file. However, the minimum number of chunks was wrong.
It is possible to write a commit-graph file with zero commits, and
that violates this macro's value.

Rewrite the macro, and use extra macros to better explain the magic
constants.

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