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

Function gitmodules_cb

submodule-config.c:816–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816static int gitmodules_cb(const char *var, const char *value,
817 const struct config_context *ctx, void *data)
818{
819 struct repository *repo = data;
820 struct parse_config_parameter parameter;
821
822 parameter.cache = repo->submodule_cache;
823 parameter.treeish_name = NULL;
824 parameter.gitmodules_oid = null_oid(the_hash_algo);
825 parameter.overwrite = 1;
826
827 return parse_config(var, value, ctx, &parameter);
828}
829
830void repo_read_gitmodules(struct repository *repo, int skip_if_read)
831{

Callers

nothing calls this directly

Calls 2

null_oidFunction · 0.85
parse_configFunction · 0.70

Tested by

no test coverage detected