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

Function submodule_from_ce

submodule.c:750–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750const struct submodule *submodule_from_ce(const struct cache_entry *ce)
751{
752 if (!S_ISGITLINK(ce->ce_mode))
753 return NULL;
754
755 if (!should_update_submodules())
756 return NULL;
757
758 return submodule_from_path(the_repository, null_oid(the_hash_algo), ce->name);
759}
760
761
762struct collect_changed_submodules_cb_data {

Callers 8

write_entryFunction · 0.85
checkout_entry_caFunction · 0.85
unlink_entryFunction · 0.85
verify_uptodate_1Function · 0.85
verify_clean_submoduleFunction · 0.85
verify_absent_1Function · 0.85
merged_entryFunction · 0.85

Calls 3

should_update_submodulesFunction · 0.85
submodule_from_pathFunction · 0.85
null_oidFunction · 0.85

Tested by

no test coverage detected