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

Function git_config_from_file_with_options

config.c:1411–1427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1409}
1410
1411int git_config_from_file_with_options(config_fn_t fn, const char *filename,
1412 void *data, enum config_scope scope,
1413 const struct config_options *opts)
1414{
1415 int ret = -1;
1416 FILE *f;
1417
1418 if (!filename)
1419 BUG("filename cannot be NULL");
1420 f = fopen_or_warn(filename, "r");
1421 if (f) {
1422 ret = do_config_from_file(fn, CONFIG_ORIGIN_FILE, filename,
1423 f, data, scope, opts);
1424 fclose(f);
1425 }
1426 return ret;
1427}
1428
1429int git_config_from_file(config_fn_t fn, const char *filename, void *data)
1430{

Callers 6

handle_path_includeFunction · 0.85
git_config_from_fileFunction · 0.85
do_git_config_sequenceFunction · 0.85
config_with_optionsFunction · 0.85

Calls 2

fopen_or_warnFunction · 0.85
do_config_from_fileFunction · 0.85

Tested by

no test coverage detected