| 1523 | } |
| 1524 | |
| 1525 | void git_global_config_paths(char **user_out, char **xdg_out) |
| 1526 | { |
| 1527 | char *user_config = xstrdup_or_null(getenv("GIT_CONFIG_GLOBAL")); |
| 1528 | char *xdg_config = NULL; |
| 1529 | |
| 1530 | if (!user_config) { |
| 1531 | user_config = interpolate_path("~/.gitconfig", 0); |
| 1532 | xdg_config = xdg_config_home("config"); |
| 1533 | } |
| 1534 | |
| 1535 | *user_out = user_config; |
| 1536 | *xdg_out = xdg_config; |
| 1537 | } |
| 1538 | |
| 1539 | int git_config_system(void) |
| 1540 | { |
no test coverage detected