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

Function submodule_from_path

submodule-config.c:871–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869}
870
871const struct submodule *submodule_from_path(struct repository *r,
872 const struct object_id *treeish_name,
873 const char *path)
874{
875 repo_read_gitmodules(r, 1);
876 return config_from(r->submodule_cache, treeish_name, path, lookup_path);
877}
878
879/**
880 * Used internally by submodules_of_tree(). Recurses into 'treeish_name'

Calls 2

repo_read_gitmodulesFunction · 0.85
config_fromFunction · 0.85

Tested by 1

cmd__submodule_configFunction · 0.68