Merge branch 'jk/rebase-am-fork-point'
[gitweb.git] / builtin / blame.c
index 23212cbe87623c13772e5743a6b03a57a91749b0..17d30d00aa3f6c4d0f62cae6603f9003dd2f2395 100644 (file)
@@ -1371,11 +1371,8 @@ static struct commit_list *first_scapegoat(struct rev_info *revs, struct commit
 
 static int num_scapegoats(struct rev_info *revs, struct commit *commit)
 {
-       int cnt;
        struct commit_list *l = first_scapegoat(revs, commit);
-       for (cnt = 0; l; l = l->next)
-               cnt++;
-       return cnt;
+       return commit_list_count(l);
 }
 
 /* Distribute collected unsorted blames to the respected sorted lists