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

Function get_submodule_repo_for

submodule.c:1494–1506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1492}
1493
1494static struct repository *get_submodule_repo_for(struct repository *r,
1495 const char *path,
1496 const struct object_id *treeish_name)
1497{
1498 struct repository *ret = xmalloc(sizeof(*ret));
1499
1500 if (repo_submodule_init(ret, r, path, treeish_name)) {
1501 free(ret);
1502 return NULL;
1503 }
1504
1505 return ret;
1506}
1507
1508static struct fetch_task *fetch_task_create(struct submodule_parallel_fetch *spf,
1509 const char *path,

Callers 1

fetch_task_createFunction · 0.85

Calls 2

repo_submodule_initFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected