line |
true |
false |
branch |
41
|
0 |
5 |
while (val >= placevalue) { |
65
|
1 |
5 |
if (strcmp(old_path, new_path) != 0) { |
71
|
0 |
1 |
if ((common_dirlen = git_path_common_dirlen(old_path, new_path)) && |
|
0 |
0 |
if ((common_dirlen = git_path_common_dirlen(old_path, new_path)) && |
82
|
0 |
1 |
if (error < 0) |
85
|
0 |
5 |
if (git_buf_printf(out, " %s", old_path) < 0) |
90
|
0 |
5 |
if (stats->renames > 0) |
98
|
0 |
6 |
if (delta->flags & GIT_DIFF_FLAG_BINARY) { |
99
|
0 |
0 |
if (git_buf_printf(out, |
104
|
0 |
6 |
if (git_buf_printf(out, |
109
|
2 |
4 |
if (filestat->insertions || filestat->deletions) { |
|
1 |
1 |
if (filestat->insertions || filestat->deletions) { |
110
|
0 |
5 |
if (git_buf_putc(out, ' ') < 0) |
113
|
5 |
0 |
if (!width) { |
134
|
0 |
6 |
return (git_buf_oom(out) ? -1 : 0); |
145
|
0 |
0 |
if (delta->flags & GIT_DIFF_FLAG_BINARY) |
158
|
7 |
2 |
if (delta->old_file.mode != delta->new_file.mode) { |
159
|
5 |
2 |
if (delta->old_file.mode == 0) { |
163
|
2 |
0 |
else if (delta->new_file.mode == 0) { |
185
|
5 |
0 |
assert(out && diff); |
|
0 |
5 |
assert(out && diff); |
188
|
0 |
5 |
GIT_ERROR_CHECK_ALLOC(stats); |
193
|
0 |
5 |
if (!stats->filestats) { |
201
|
6 |
5 |
for (i = 0; i < deltas && !error; ++i) { |
|
6 |
0 |
for (i = 0; i < deltas && !error; ++i) { |
206
|
0 |
6 |
if ((error = git_patch_from_diff(&patch, diff, i)) < 0) |
214
|
1 |
5 |
if (strcmp(delta->old_file.path, delta->new_file.path) != 0) { |
230
|
6 |
0 |
if (stats->max_name < namelen) |
232
|
4 |
2 |
if (stats->max_filestat < add + remove) |
241
|
0 |
5 |
if (error < 0) { |
253
|
0 |
2 |
assert(stats); |
261
|
0 |
2 |
assert(stats); |
269
|
0 |
2 |
assert(stats); |
284
|
7 |
0 |
assert(out && stats); |
|
0 |
7 |
assert(out && stats); |
286
|
0 |
7 |
if (format & GIT_DIFF_STATS_NUMBER) { |
287
|
0 |
0 |
for (i = 0; i < stats->files_changed; ++i) { |
288
|
0 |
0 |
if ((delta = git_diff_get_delta(stats->diff, i)) == NULL) |
293
|
0 |
0 |
if (error < 0) |
298
|
5 |
2 |
if (format & GIT_DIFF_STATS_FULL) { |
299
|
0 |
5 |
if (width > 0) { |
300
|
0 |
0 |
if (width > stats->max_name + stats->max_digits + 5) |
302
|
0 |
0 |
if (width < STATS_FULL_MIN_SCALE) |
305
|
0 |
5 |
if (width > stats->max_filestat) |
308
|
6 |
5 |
for (i = 0; i < stats->files_changed; ++i) { |
309
|
0 |
6 |
if ((delta = git_diff_get_delta(stats->diff, i)) == NULL) |
314
|
0 |
6 |
if (error < 0) |
319
|
2 |
5 |
if (format & GIT_DIFF_STATS_FULL || format & GIT_DIFF_STATS_SHORT) { |
|
2 |
0 |
if (format & GIT_DIFF_STATS_FULL || format & GIT_DIFF_STATS_SHORT) { |
320
|
2 |
5 |
git_buf_printf( |
324
|
2 |
5 |
if (stats->insertions || stats->deletions == 0) |
|
2 |
0 |
if (stats->insertions || stats->deletions == 0) |
325
|
2 |
5 |
git_buf_printf( |
329
|
5 |
2 |
if (stats->deletions || stats->insertions == 0) |
|
2 |
3 |
if (stats->deletions || stats->insertions == 0) |
330
|
2 |
2 |
git_buf_printf( |
336
|
0 |
7 |
if (git_buf_oom(out)) |
340
|
7 |
0 |
if (format & GIT_DIFF_STATS_INCLUDE_SUMMARY) { |
341
|
9 |
7 |
for (i = 0; i < stats->files_changed; ++i) { |
342
|
0 |
9 |
if ((delta = git_diff_get_delta(stats->diff, i)) == NULL) |
346
|
0 |
9 |
if (error < 0) |
356
|
0 |
5 |
if (stats == NULL) |