| 1344 | } |
| 1345 | |
| 1346 | static 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 | |
| 1362 | static int module_migrate(int argc UNUSED, const char **argv UNUSED, |
| 1363 | const char *prefix UNUSED, struct repository *repo) |
nothing calls this directly
no test coverage detected