line |
true |
false |
branch |
20
|
14 |
203 |
if (time_a < time_b) |
22
|
17 |
186 |
if (time_a > time_b) |
31
|
292 |
0 |
if (new_list != NULL) { |
44
|
10 |
87 |
while ((p = *pp) != NULL) { |
45
|
0 |
10 |
if (git_commit_list_time_cmp(p->item, item) > 0) |
64
|
178 |
0 |
if (n_parents <= PARENTS_PER_COMMIT) |
67
|
0 |
0 |
if (git__multiply_sizet_overflow(&bytes, n_parents, sizeof(git_commit_list_node *))) |
78
|
334 |
85 |
if (list == NULL) |
81
|
122 |
85 |
while (list) { |
93
|
170 |
21 |
git_commit_list_node *item = top ? top->item : NULL; |
95
|
170 |
21 |
if (top) { |
113
|
0 |
178 |
GIT_ERROR_CHECK_ALLOC(commit); |
116
|
0 |
178 |
if ((error = git_commit__parse_ext(commit, obj, GIT_COMMIT_PARSE_QUICK)) < 0) { |
121
|
0 |
178 |
if (!git__is_uint16(git_array_size(commit->parent_ids))) { |
130
|
0 |
178 |
GIT_ERROR_CHECK_ALLOC(node->parents); |
132
|
145 |
178 |
git_array_foreach(commit->parent_ids, i, parent_oid) { |
|
145 |
0 |
git_array_foreach(commit->parent_ids, i, parent_oid) { |
148
|
112 |
178 |
if (commit->parsed) |
151
|
0 |
178 |
if ((error = git_odb_read(&obj, walk->odb, &commit->oid)) < 0) |
154
|
0 |
178 |
if (obj->cached.type != GIT_OBJECT_COMMIT) { |