commit-graph: refactor preparing commit graph
authorJonathan Tan <redacted>
Wed, 11 Jul 2018 22:42:37 +0000 (15:42 -0700)
committerJunio C Hamano <redacted>
Tue, 17 Jul 2018 22:47:48 +0000 (15:47 -0700)
commit5faf357b4314fcc7976f75c7f3ba205d9eba8e77
tree2b520e2238d88b96cacdf90bd4378c193a61250f
parent8295296458bfa5e371dccae0a0e0a4b9a56f9b40
commit-graph: refactor preparing commit graph

Two functions in the code (1) check if the repository is configured for
commit graphs, (2) call prepare_commit_graph(), and (3) check if the
graph exists. Move (1) and (3) into prepare_commit_graph(), reducing
duplication of code.

Signed-off-by: Jonathan Tan <redacted>
Signed-off-by: Junio C Hamano <redacted>
commit-graph.c
git clone https://git.99rst.org/PROJECT