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

Function cmd__submodule_is_active

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

Source from the content-addressed store, hash-verified

90}
91
92static int cmd__submodule_is_active(int argc, const char **argv)
93{
94 struct option options[] = {
95 OPT_END()
96 };
97 argc = parse_options(argc, argv, "test-tools", options,
98 submodule_is_active_usage, 0);
99 if (argc != 1)
100 usage_with_options(submodule_is_active_usage, options);
101
102 setup_git_directory(the_repository);
103
104 return !is_submodule_active(the_repository, argv[0]);
105}
106
107static int cmd__submodule_resolve_relative_url(int argc, const char **argv)
108{

Callers

nothing calls this directly

Calls 4

parse_optionsFunction · 0.85
usage_with_optionsFunction · 0.85
setup_git_directoryFunction · 0.85
is_submodule_activeFunction · 0.85

Tested by

no test coverage detected