MCPcopy Index your code
hub / github.com/git/git / implicit_ident_advice

Function implicit_ident_advice

sequencer.c:1397–1411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1395" git commit --amend --reset-author\n");
1396
1397static const char *implicit_ident_advice(void)
1398{
1399 char *user_config = interpolate_path("~/.gitconfig", 0);
1400 char *xdg_config = xdg_config_home("config");
1401 int config_exists = file_exists(user_config) || file_exists(xdg_config);
1402
1403 free(user_config);
1404 free(xdg_config);
1405
1406 if (config_exists)
1407 return _(implicit_ident_advice_config);
1408 else
1409 return _(implicit_ident_advice_noconfig);
1410
1411}
1412
1413void print_commit_summary(struct repository *r,
1414 const char *prefix,

Callers 1

print_commit_summaryFunction · 0.85

Calls 3

interpolate_pathFunction · 0.85
xdg_config_homeFunction · 0.85
file_existsFunction · 0.85

Tested by

no test coverage detected