line |
true |
false |
branch |
27
|
8 |
0 |
while (*s && *s != '\n' && isspace(*s)) |
|
6 |
2 |
while (*s && *s != '\n' && isspace(*s)) |
|
0 |
6 |
while (*s && *s != '\n' && isspace(*s)) |
29
|
8 |
0 |
return !*s || *s == '\n'; |
|
2 |
6 |
return !*s || *s == '\n'; |
36
|
10 |
0 |
if (nl) { |
53
|
0 |
6 |
if (len == 0) |
55
|
0 |
6 |
if (len == 1) |
65
|
83 |
1 |
for (; i > 0; i--) { |
66
|
5 |
78 |
if (buf[i] == '\n') { |
90
|
4 |
0 |
for (c = line; *c; c++) { |
91
|
2 |
2 |
if (strchr(separators, *c)) { |
96
|
2 |
0 |
if (!whitespace_found && (isalnum(*c) || *c == '-')) |
|
0 |
2 |
if (!whitespace_found && (isalnum(*c) || *c == '-')) |
|
0 |
0 |
if (!whitespace_found && (isalnum(*c) || *c == '-')) |
98
|
0 |
0 |
if (c != line && (*c == ' ' || *c == '\t')) { |
|
0 |
0 |
if (c != line && (*c == ' ' || *c == '\t')) { |
|
0 |
0 |
if (c != line && (*c == ' ' || *c == '\t')) { |
123
|
7 |
2 |
while (bol < cutoff) { |
126
|
0 |
7 |
if (!next_line) |
131
|
7 |
0 |
if (buf[bol] == COMMENT_LINE_CHAR || buf[bol] == '\n') { |
|
1 |
6 |
if (buf[bol] == COMMENT_LINE_CHAR || buf[bol] == '\n') { |
133
|
1 |
0 |
if (!boc) |
136
|
0 |
6 |
} else if (git__prefixcmp(buf + bol, "Conflicts:\n") == 0) { |
138
|
0 |
0 |
if (!boc) |
140
|
0 |
6 |
} else if (in_old_conflicts_block && buf[bol] == '\t') { |
|
0 |
0 |
} else if (in_old_conflicts_block && buf[bol] == '\t') { |
142
|
1 |
5 |
} else if (boc) { |
149
|
0 |
2 |
return boc ? len - boc : len - cutoff; |
160
|
7 |
2 |
for (s = str; *s; s = next_line(s)) { |
161
|
0 |
7 |
if (git__prefixcmp(s, "---") == 0) |
188
|
3 |
1 |
for (s = buf; s < buf + len; s = next_line(s)) { |
189
|
0 |
3 |
if (s[0] == COMMENT_LINE_CHAR) |
191
|
1 |
2 |
if (is_blank_line(s)) |
203
|
6 |
0 |
while (last_line(&l, buf, l) && l >= end_of_title) { |
|
5 |
1 |
while (last_line(&l, buf, l) && l >= end_of_title) { |
208
|
0 |
5 |
if (bol[0] == COMMENT_LINE_CHAR) { |
213
|
1 |
4 |
if (is_blank_line(bol)) { |
214
|
0 |
1 |
if (only_spaces) |
217
|
1 |
0 |
if (recognized_prefix && |
|
1 |
0 |
if (recognized_prefix && |
220
|
0 |
0 |
else if (trailer_lines && !non_trailer_lines) |
|
0 |
0 |
else if (trailer_lines && !non_trailer_lines) |
226
|
6 |
2 |
for (p = git_generated_prefixes; *p; p++) { |
227
|
2 |
4 |
if (git__prefixcmp(bol, *p) == 0) { |
236
|
2 |
0 |
if (separator_pos >= 1 && !isspace(bol[0])) { |
|
2 |
0 |
if (separator_pos >= 1 && !isspace(bol[0])) { |
239
|
0 |
2 |
if (recognized_prefix) |
241
|
0 |
0 |
} else if (isspace(bol[0])) |
270
|
0 |
2 |
if (buffer == NULL) |
308
|
0 |
2 |
if (trailer == NULL) |
314
|
2 |
4 |
if (*ptr == 0) { |
322
|
0 |
32 |
if (*ptr == 0) { |
326
|
8 |
24 |
if (isalnum(*ptr) || *ptr == '-') { |
|
4 |
4 |
if (isalnum(*ptr) || *ptr == '-') { |
331
|
4 |
0 |
if (*ptr == ' ' || *ptr == '\t') { |
|
0 |
4 |
if (*ptr == ' ' || *ptr == '\t') { |
337
|
4 |
0 |
if (strchr(TRAILER_SEPARATORS, *ptr)) { |
346
|
0 |
0 |
if (*ptr == 0) { |
350
|
0 |
0 |
if (*ptr == ' ' || *ptr == '\t') { |
|
0 |
0 |
if (*ptr == ' ' || *ptr == '\t') { |
354
|
0 |
0 |
if (strchr(TRAILER_SEPARATORS, *ptr)) { |
362
|
0 |
8 |
if (*ptr == 0) { |
366
|
4 |
4 |
if (*ptr == ' ' || *ptr == '\t') { |
|
0 |
4 |
if (*ptr == ' ' || *ptr == '\t') { |
374
|
0 |
29 |
if (*ptr == 0) { |
378
|
4 |
25 |
if (*ptr == '\n') { |
385
|
0 |
4 |
if (*ptr == ' ') { |
394
|
1 |
3 |
git_message_trailer *t = git_array_alloc(arr); |
|
3 |
0 |
git_message_trailer *t = git_array_alloc(arr); |
405
|
0 |
0 |
if (*ptr == 0) { |
409
|
0 |
0 |
if (*ptr == '\n') { |