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

Function submodule_cache_check_init

submodule-config.c:765–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765static void submodule_cache_check_init(struct repository *repo)
766{
767 if (repo->submodule_cache && repo->submodule_cache->initialized)
768 return;
769
770 if (!repo->submodule_cache)
771 repo->submodule_cache = submodule_cache_alloc();
772
773 submodule_cache_init(repo->submodule_cache);
774}
775
776/*
777 * Note: This function is private for a reason, the '.gitmodules' file should

Callers 2

repo_read_gitmodulesFunction · 0.85
gitmodules_config_oidFunction · 0.85

Calls 2

submodule_cache_allocFunction · 0.85
submodule_cache_initFunction · 0.85

Tested by

no test coverage detected