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

Function gitmodules_config_oid

submodule-config.c:846–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844}
845
846void gitmodules_config_oid(const struct object_id *commit_oid)
847{
848 struct strbuf rev = STRBUF_INIT;
849 struct object_id oid;
850
851 submodule_cache_check_init(the_repository);
852
853 if (gitmodule_oid_from_commit(commit_oid, &oid, &rev)) {
854 git_config_from_blob_oid(gitmodules_cb, rev.buf,
855 the_repository, &oid, the_repository,
856 CONFIG_SCOPE_UNKNOWN);
857 }
858 strbuf_release(&rev);
859
860 the_repository->submodule_cache->gitmodules_read = 1;
861}
862
863const struct submodule *submodule_from_name(struct repository *r,
864 const struct object_id *treeish_name,

Callers 1

grep_objectsFunction · 0.85

Calls 4

git_config_from_blob_oidFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected