line |
true |
false |
branch |
21
|
370 |
0 |
for (scan = *str; *scan && !git__isdigit(*scan); scan++); |
|
261 |
109 |
for (scan = *str; *scan && !git__isdigit(*scan); scan++); |
23
|
109 |
109 |
for (; git__isdigit(*scan); scan++, digits++) |
27
|
109 |
0 |
return (digits > 0) ? 0 : -1; |
33
|
0 |
38 |
if (*header != '@') |
35
|
0 |
38 |
if (git_xdiff_scan_int(&header, &hunk->old_start) < 0) |
37
|
28 |
10 |
if (*header == ',') { |
38
|
0 |
28 |
if (git_xdiff_scan_int(&header, &hunk->old_lines) < 0) |
42
|
0 |
38 |
if (git_xdiff_scan_int(&header, &hunk->new_start) < 0) |
44
|
5 |
33 |
if (*header == ',') { |
45
|
0 |
5 |
if (git_xdiff_scan_int(&header, &hunk->new_lines) < 0) |
49
|
38 |
0 |
if (hunk->old_start < 0 || hunk->new_start < 0) |
|
38 |
0 |
if (hunk->old_start < 0 || hunk->new_start < 0) |
75
|
1657 |
81 |
for (line->num_lines = 0; scan < scan_end; ++scan) |
76
|
81 |
1576 |
if (*scan == '\n') |
121
|
38 |
57 |
if (len == 1) { |
123
|
0 |
38 |
if (output->error < 0) |
127
|
0 |
38 |
if (info->hunk.header_len >= sizeof(info->hunk.header)) |
133
|
0 |
38 |
if (buffer_len < info->hunk.header_len) { |
151
|
62 |
33 |
if (len == 2 || len == 3) { |
|
24 |
38 |
if (len == 2 || len == 3) { |
153
|
20 |
37 |
line.origin = |
|
14 |
6 |
line.origin = |
158
|
37 |
20 |
if (line.origin == GIT_DIFF_LINE_ADDITION) |
160
|
14 |
6 |
else if (line.origin == GIT_DIFF_LINE_DELETION) |
168
|
57 |
0 |
if (!output->error && output->data_cb != NULL) |
|
57 |
0 |
if (!output->error && output->data_cb != NULL) |
173
|
24 |
71 |
if (len == 3 && !output->error) { |
|
24 |
0 |
if (len == 3 && !output->error) { |
179
|
6 |
18 |
line.origin = |
|
6 |
0 |
line.origin = |
189
|
24 |
0 |
if (!output->error && output->data_cb != NULL) |
|
24 |
0 |
if (!output->error && output->data_cb != NULL) |
213
|
38 |
0 |
if (xo->config.find_func != NULL) |
236
|
50 |
0 |
uint32_t flags = opts ? opts->flags : 0; |
240
|
50 |
0 |
xo->config.ctxlen = opts ? opts->context_lines : 3; |
241
|
50 |
0 |
xo->config.interhunkctxlen = opts ? opts->interhunk_lines : 0; |
243
|
0 |
50 |
if (flags & GIT_DIFF_IGNORE_WHITESPACE) |
245
|
0 |
50 |
if (flags & GIT_DIFF_IGNORE_WHITESPACE_CHANGE) |
247
|
0 |
50 |
if (flags & GIT_DIFF_IGNORE_WHITESPACE_EOL) |
249
|
0 |
50 |
if (flags & GIT_DIFF_INDENT_HEURISTIC) |
252
|
0 |
50 |
if (flags & GIT_DIFF_PATIENCE) |
254
|
0 |
50 |
if (flags & GIT_DIFF_MINIMAL) |
257
|
0 |
50 |
if (flags & GIT_DIFF_IGNORE_BLANK_LINES) |