commit-graph: extract copy_oids_to_commits()
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 12 Jun 2019 13:29:44 +0000 (06:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jun 2019 18:20:54 +0000 (11:20 -0700)
commitf998d542260ec643875e7f0fa860dbb43c2388ca
tree0aef6f05907b92eabf32248218076c08e08fc400
parent014e3440f524a620fd8aba92f1efeac737d9c23d
commit-graph: extract copy_oids_to_commits()

The write_commit_graph() method is too complex, so we are
extracting helper functions one by one.

Extract copy_oids_to_commits(), which fills the commits list
with the distinct commits from the oids list. During this loop,
it also counts the number of "extra" edges from octopus merges.

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