| line |
true |
false |
branch |
|
26
|
0 |
0 |
if (!entry) |
|
46
|
0 |
0 |
assert(a && b && a->replace_email && b->replace_email); |
|
|
0 |
0 |
assert(a && b && a->replace_email && b->replace_email); |
|
|
0 |
0 |
assert(a && b && a->replace_email && b->replace_email); |
|
|
0 |
0 |
assert(a && b && a->replace_email && b->replace_email); |
|
49
|
0 |
0 |
if (cmp) |
|
53
|
0 |
0 |
if (a->replace_name == NULL || b->replace_name == NULL) |
|
|
0 |
0 |
if (a->replace_name == NULL || b->replace_name == NULL) |
|
71
|
0 |
0 |
return git_parse_peek(&c, ctx, GIT_PARSE_PEEK_SKIP_WHITESPACE) < 0 || c == '#'; |
|
|
0 |
0 |
return git_parse_peek(&c, ctx, GIT_PARSE_PEEK_SKIP_WHITESPACE) < 0 || c == '#'; |
|
78
|
0 |
0 |
while (ctx->line_len > 0 && *ctx->line != '#' && *ctx->line != needle) |
|
|
0 |
0 |
while (ctx->line_len > 0 && *ctx->line != '#' && *ctx->line != needle) |
|
|
0 |
0 |
while (ctx->line_len > 0 && *ctx->line != '#' && *ctx->line != needle) |
|
81
|
0 |
0 |
if (ctx->line_len == 0 || *ctx->line == '#') |
|
|
0 |
0 |
if (ctx->line_len == 0 || *ctx->line == '#') |
|
109
|
0 |
0 |
if (is_eol(ctx)) |
|
113
|
0 |
0 |
if (advance_until(&start, &len, ctx, '<') < 0) |
|
123
|
0 |
0 |
if (advance_until(&start, &len, ctx, '>') < 0) |
|
127
|
0 |
0 |
if (!is_eol(ctx)) { |
|
131
|
0 |
0 |
if (advance_until(&start, &len, ctx, '<') < 0) |
|
136
|
0 |
0 |
if (advance_until(&start, &len, ctx, '>') < 0) |
|
142
|
0 |
0 |
if (!is_eol(ctx)) |
|
152
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(mm); |
|
155
|
0 |
0 |
if (error < 0) { |
|
167
|
2 |
0 |
if (!mm) |
|
170
|
0 |
0 |
git_vector_foreach(&mm->entries, idx, entry) |
|
186
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(entry); |
|
188
|
0 |
0 |
assert(mm && replace_email && *replace_email); |
|
|
0 |
0 |
assert(mm && replace_email && *replace_email); |
|
|
0 |
0 |
assert(mm && replace_email && *replace_email); |
|
190
|
0 |
0 |
if (real_name_size > 0) { |
|
192
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(entry->real_name); |
|
194
|
0 |
0 |
if (real_email_size > 0) { |
|
196
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(entry->real_email); |
|
198
|
0 |
0 |
if (replace_name_size > 0) { |
|
200
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(entry->replace_name); |
|
203
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(entry->replace_email); |
|
206
|
0 |
0 |
if (error == GIT_EEXISTS) |
|
208
|
0 |
0 |
else if (error < 0) |
|
218
|
0 |
0 |
return mailmap_add_entry_unterminated( |
|
|
0 |
0 |
return mailmap_add_entry_unterminated( |
|
|
0 |
0 |
return mailmap_add_entry_unterminated( |
|
238
|
0 |
0 |
if (memchr(buf, '\0', len) != NULL) |
|
244
|
0 |
0 |
while (ctx.remain_len > 0) { |
|
247
|
0 |
0 |
if (error < 0) { |
|
257
|
0 |
0 |
if (error < 0) |
|
274
|
0 |
0 |
if (error < 0) |
|
278
|
0 |
0 |
if (error < 0) { |
|
293
|
0 |
0 |
assert(mm && repo); |
|
|
0 |
0 |
assert(mm && repo); |
|
296
|
0 |
0 |
if (error < 0) |
|
300
|
0 |
0 |
if (error < 0) |
|
304
|
0 |
0 |
if (error < 0) |
|
308
|
0 |
0 |
if (error < 0) |
|
321
|
0 |
0 |
const char *base = repo ? git_repository_workdir(repo) : NULL; |
|
327
|
0 |
0 |
if (error < 0) |
|
331
|
0 |
0 |
if (error < 0) |
|
335
|
0 |
0 |
if (error < 0) |
|
353
|
0 |
0 |
assert(mm && repo); |
|
|
0 |
0 |
assert(mm && repo); |
|
356
|
0 |
0 |
if (repo->is_bare) |
|
360
|
0 |
0 |
if (git_repository_config(&config, repo) == 0) { |
|
361
|
0 |
0 |
if (git_config_get_string_buf(&rev_buf, config, MM_BLOB_CONFIG) == 0) |
|
363
|
0 |
0 |
if (git_config_get_path(&path_buf, config, MM_FILE_CONFIG) == 0) |
|
378
|
0 |
0 |
if (!repo->is_bare) |
|
380
|
0 |
0 |
if (rev != NULL) |
|
382
|
0 |
0 |
if (path != NULL) |
|
393
|
0 |
0 |
if (error < 0) |
|
411
|
0 |
3 |
assert(email); |
|
413
|
3 |
0 |
if (!mm) |
|
422
|
0 |
0 |
if (error >= 0) |
|
424
|
0 |
0 |
else if (error != GIT_ENOTFOUND) |
|
428
|
0 |
0 |
for (; idx < git_vector_length(&mm->entries); ++idx) { |
|
431
|
0 |
0 |
if (git__strcmp(entry->replace_email, email)) |
|
434
|
0 |
0 |
assert(entry->replace_name); /* should be specific */ |
|
435
|
0 |
0 |
if (!name || !git__strcmp(entry->replace_name, name)) |
|
|
0 |
0 |
if (!name || !git__strcmp(entry->replace_name, name)) |
|
439
|
0 |
0 |
if (fallback < 0) |
|
450
|
3 |
0 |
assert(name && email); |
|
|
0 |
3 |
assert(name && email); |
|
455
|
0 |
3 |
if ((entry = git_mailmap_entry_lookup(mailmap, name, email))) { |
|
456
|
0 |
0 |
if (entry->real_name) |
|
458
|
0 |
0 |
if (entry->real_email) |
|
471
|
0 |
3 |
if (!sig) |
|
475
|
0 |
3 |
if (error < 0) |
|
479
|
0 |
3 |
if (error < 0) |