commit-graph: close under reachability
commit4f2542b49e1525ebde595a5254743579a28a7382
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 10 Apr 2018 12:56:04 +0000 (10 08:56 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Apr 2018 01:43:02 +0000 (11 10:43 +0900)
treeecba6a331d4f8fabeec0f71207da6913401a5628
parent1b70dfd5946f76e40516f2229afbf249f185bc7a
commit-graph: close under reachability

Teach write_commit_graph() to walk all parents from the commits
discovered in packfiles. This prevents gaps given by loose objects or
previously-missed packfiles.

Also automatically add commits from the existing graph file, if it
exists.

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