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

Function repo_read_gitmodules

submodule-config.c:830–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830void repo_read_gitmodules(struct repository *repo, int skip_if_read)
831{
832 submodule_cache_check_init(repo);
833
834 if (repo->submodule_cache->gitmodules_read && skip_if_read)
835 return;
836
837 if (repo_read_index(repo) < 0)
838 return;
839
840 if (!is_gitmodules_unmerged(repo->index))
841 config_from_gitmodules(gitmodules_cb, repo, repo);
842
843 repo->submodule_cache->gitmodules_read = 1;
844}
845
846void gitmodules_config_oid(const struct object_id *commit_oid)
847{

Callers 6

load_gitmodules_fileFunction · 0.85
submodule_from_nameFunction · 0.85
submodule_from_pathFunction · 0.85
grep_submoduleFunction · 0.85
cmd_grepFunction · 0.85
module_set_urlFunction · 0.85

Calls 4

repo_read_indexFunction · 0.85
is_gitmodules_unmergedFunction · 0.85
config_from_gitmodulesFunction · 0.85

Tested by

no test coverage detected