| 1395 | " git commit --amend --reset-author\n"); |
| 1396 | |
| 1397 | static 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 | |
| 1413 | void print_commit_summary(struct repository *r, |
| 1414 | const char *prefix, |
no test coverage detected