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

Function module_gitdir

builtin/submodule--helper.c:1346–1360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1344}
1345
1346static int module_gitdir(int argc, const char **argv, const char *prefix UNUSED,
1347 struct repository *repo)
1348{
1349 struct strbuf gitdir = STRBUF_INIT;
1350
1351 if (argc != 2)
1352 usage(_("git submodule--helper gitdir <name>"));
1353
1354 submodule_name_to_gitdir(&gitdir, repo, argv[1]);
1355
1356 printf("%s\n", gitdir.buf);
1357
1358 strbuf_release(&gitdir);
1359 return 0;
1360}
1361
1362static int module_migrate(int argc UNUSED, const char **argv UNUSED,
1363 const char *prefix UNUSED, struct repository *repo)

Callers

nothing calls this directly

Calls 3

submodule_name_to_gitdirFunction · 0.85
strbuf_releaseFunction · 0.85
usageFunction · 0.50

Tested by

no test coverage detected