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

Function cmd__submodule_config_writeable

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

Source from the content-addressed store, hash-verified

194}
195
196static int cmd__submodule_config_writeable(int argc, const char **argv UNUSED)
197{
198 struct option options[] = {
199 OPT_END()
200 };
201 const char *const usage[] = {
202 "test-tool submodule config-writeable",
203 NULL
204 };
205 setup_git_directory(the_repository);
206
207 if (argc == 1)
208 return is_writing_gitmodules_ok() ? 0 : -1;
209
210 usage_with_options(usage, options);
211}
212
213static struct test_cmd cmds[] = {
214 { "check-name", cmd__submodule_check_name },

Callers

nothing calls this directly

Calls 3

setup_git_directoryFunction · 0.85
is_writing_gitmodules_okFunction · 0.85
usage_with_optionsFunction · 0.85

Tested by

no test coverage detected