summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2019-09-15 19:07:44 +0200
committerJunio C Hamano <gitster@pobox.com>2019-09-16 13:00:50 -0700
commit689a146c914d861a5bc8b88643802a1ede013dce (patch)
tree308652c97b17975adab5d0c2a323fc7c3df38ef3 /builtin/commit-graph.c
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9 (diff)
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 <l.s.r@web.de> Acked-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions