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

Function git_global_config_paths

config.c:1525–1537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1523}
1524
1525void 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
1539int git_config_system(void)
1540{

Callers 3

git_global_configFunction · 0.85
do_git_config_sequenceFunction · 0.85
git_config_val_globalFunction · 0.85

Calls 3

xstrdup_or_nullFunction · 0.85
interpolate_pathFunction · 0.85
xdg_config_homeFunction · 0.85

Tested by

no test coverage detected