MCPcopy Create free account
hub / github.com/git/git / submodule_from_name

Function submodule_from_name

submodule-config.c:863–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863const struct submodule *submodule_from_name(struct repository *r,
864 const struct object_id *treeish_name,
865 const char *name)
866{
867 repo_read_gitmodules(r, 1);
868 return config_from(r->submodule_cache, treeish_name, name, lookup_name);
869}
870
871const struct submodule *submodule_from_path(struct repository *r,
872 const struct object_id *treeish_name,

Callers 5

find_unpushed_submodulesFunction · 0.85
cmd__submodule_configFunction · 0.85
module_addFunction · 0.85

Calls 2

repo_read_gitmodulesFunction · 0.85
config_fromFunction · 0.85

Tested by 1

cmd__submodule_configFunction · 0.68