Re: [PATCH] commit-graph: use commit_list_count()

2019-09-15 Thread Derrick Stolee
On 9/15/2019 1:07 PM, René Scharfe wrote: > 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. I was unfamiliar with this method, but it obviously remove

[PATCH] commit-graph: use commit_list_count()

2019-09-15 Thread René Scharfe
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 --- commit-graph.c | 17 ++--- 1 file changed, 6 insertions(+),