diff options
author | René Scharfe <l.s.r@web.de> | 2019-09-15 19:07:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-09-16 13:00:50 -0700 |
commit | 689a146c914d861a5bc8b88643802a1ede013dce (patch) | |
tree | 308652c97b17975adab5d0c2a323fc7c3df38ef3 /t/t5537-fetch-shallow.sh | |
parent | Git 2.23 (diff) | |
download | tgif-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 't/t5537-fetch-shallow.sh')
0 files changed, 0 insertions, 0 deletions