summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-06-27 09:24:28 -0400
committerJunio C Hamano <gitster@pobox.com>2018-06-27 10:27:04 -0700
commit0e3b97cccbec2bd01eae4b3267bf00a9bfb277d8 (patch)
treeb1d12f58caab5825b3da68d23ce0b4a44893c8a8 /builtin/commit-graph.c
parent883e5c7fe90aa2ef9f6efd1ef476ca281d09e79b (diff)
downloadgit-0e3b97cccbec2bd01eae4b3267bf00a9bfb277d8.tar.gz
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>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions