| line |
true |
false |
branch |
|
20
|
0 |
0 |
while (len > 3 && (found = memchr(start, '$', len)) != NULL) { |
|
|
0 |
0 |
while (len > 3 && (found = memchr(start, '$', len)) != NULL) { |
|
22
|
0 |
0 |
if (remaining < 3) |
|
28
|
0 |
0 |
if (start[0] == 'I' && start[1] == 'd') |
|
|
0 |
0 |
if (start[0] == 'I' && start[1] == 'd') |
|
32
|
0 |
0 |
if (len < 3 || !found) |
|
|
0 |
0 |
if (len < 3 || !found) |
|
36
|
0 |
0 |
if ((found = memchr(start + 2, '$', len - 2)) == NULL) |
|
52
|
0 |
0 |
if (!git_filter_source_id(src)) |
|
57
|
0 |
0 |
if (ident_find_id(&id_start, &id_end, from->ptr, from->size) < 0) |
|
64
|
0 |
0 |
if (git_buf_grow(to, need_size) < 0) |
|
73
|
0 |
0 |
return git_buf_oom(to) ? -1 : 0; |
|
82
|
0 |
0 |
if (ident_find_id(&id_start, &id_end, from->ptr, from->size) < 0) |
|
88
|
0 |
0 |
if (git_buf_grow(to, need_size) < 0) |
|
95
|
0 |
0 |
return git_buf_oom(to) ? -1 : 0; |
|
108
|
0 |
0 |
if (git_buf_text_is_binary(from)) |
|
111
|
0 |
0 |
if (git_filter_source_mode(src) == GIT_FILTER_SMUDGE) |
|
120
|
0 |
86 |
if (f == NULL) |