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

Function get_non_gitmodules_submodule

submodule.c:1464–1477  ·  view source on GitHub ↗

* When a submodule is not defined in .gitmodules, we cannot access it * via the regular submodule-config. Create a fake submodule, which we can * work on. */

Source from the content-addressed store, hash-verified

1462 * work on.
1463 */
1464static const struct submodule *get_non_gitmodules_submodule(const char *path)
1465{
1466 struct submodule *ret;
1467 const char *name = default_name_or_path(path);
1468
1469 if (!name)
1470 return NULL;
1471
1472 CALLOC_ARRAY(ret, 1);
1473 ret->path = name;
1474 ret->name = name;
1475
1476 return (const struct submodule *) ret;
1477}
1478
1479static void fetch_task_free(struct fetch_task *p)
1480{

Callers 1

fetch_task_createFunction · 0.85

Calls 1

default_name_or_pathFunction · 0.85

Tested by

no test coverage detected