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

Function cmd__submodule

t/helper/test-submodule.c:224–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222};
223
224int cmd__submodule(int argc, const char **argv)
225{
226 struct option options[] = {
227 OPT_END()
228 };
229 size_t i;
230
231 argc = parse_options(argc, argv, "test-tools", options, submodule_usage,
232 PARSE_OPT_STOP_AT_NON_OPTION);
233 if (argc < 1)
234 usage_with_options(submodule_usage, options);
235
236 for (i = 0; i < ARRAY_SIZE(cmds); i++)
237 if (!strcmp(cmds[i].name, argv[0]))
238 return cmds[i].fn(argc, argv);
239
240 usage_msg_optf("unknown subcommand '%s'", submodule_usage, options,
241 argv[0]);
242
243 return 0;
244}

Callers

nothing calls this directly

Calls 3

parse_optionsFunction · 0.85
usage_with_optionsFunction · 0.85
usage_msg_optfFunction · 0.85

Tested by

no test coverage detected