summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2019-09-15 19:07:44 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-09-16 13:00:50 -0700
commit689a146c914d861a5bc8b88643802a1ede013dce (patch)
tree308652c97b17975adab5d0c2a323fc7c3df38ef3 /builtin
parentGit 2.23 (diff)
downloadtgif-689a146c914d861a5bc8b88643802a1ede013dce.tar.xz
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')
0 files changed, 0 insertions, 0 deletions