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

Function check_for_new_submodule_commits

submodule.c:1265–1274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1263}
1264
1265void check_for_new_submodule_commits(struct object_id *oid)
1266{
1267 if (!initialized_fetch_ref_tips) {
1268 refs_for_each_ref(get_main_ref_store(the_repository),
1269 append_oid_to_array, &ref_tips_before_fetch);
1270 initialized_fetch_ref_tips = 1;
1271 }
1272
1273 oid_array_append(&ref_tips_after_fetch, oid);
1274}
1275
1276/*
1277 * Returns 1 if there is at least one submodule gitdir in

Callers 1

store_updated_refsFunction · 0.85

Calls 3

refs_for_each_refFunction · 0.85
get_main_ref_storeFunction · 0.85
oid_array_appendFunction · 0.85

Tested by

no test coverage detected