]> git.ipfire.org Git - thirdparty/git.git/commit - commit-graph.c
commit-graph: extract count_distinct_commits()
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 12 Jun 2019 13:29:43 +0000 (06:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jun 2019 18:20:54 +0000 (11:20 -0700)
commit014e3440f524a620fd8aba92f1efeac737d9c23d
treea3b30fdee2caebf08d5560183336b06c6e50ce64
parentb2c83060525e69f628fb32836e311978e3899e6e
commit-graph: extract count_distinct_commits()

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

Extract count_distinct_commits(), which sorts the oids list, then
iterates through to find duplicates.

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