commit-graph: use commit_list_count()
authorRené Scharfe <redacted>
Sun, 15 Sep 2019 17:07:44 +0000 (19:07 +0200)
committerJunio C Hamano <redacted>
Mon, 16 Sep 2019 20:00:50 +0000 (13:00 -0700)
commit689a146c914d861a5bc8b88643802a1ede013dce
tree308652c97b17975adab5d0c2a323fc7c3df38ef3
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
commit-graph: use commit_list_count()

Let commit_list_count() count the number of parents instead of
duplicating it.  Also store the result in an unsigned int, as that's
what the function returns, and the count is never negative.

Signed-off-by: René Scharfe <redacted>
Acked-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
commit-graph.c
git clone https://git.99rst.org/PROJECT