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

Function cmd__submodule_config_unset

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

Source from the content-addressed store, hash-verified

174}
175
176static int cmd__submodule_config_unset(int argc, const char **argv)
177{
178 struct option options[] = {
179 OPT_END()
180 };
181 const char *const usage[] = {
182 "test-tool submodule config-unset <key>",
183 NULL
184 };
185
186 setup_git_directory(the_repository);
187
188 if (argc == 2) {
189 if (!is_writing_gitmodules_ok())
190 die("please make sure that the .gitmodules file is in the working tree");
191 return config_set_in_gitmodules_file_gently(argv[1], NULL);
192 }
193 usage_with_options(usage, options);
194}
195
196static int cmd__submodule_config_writeable(int argc, const char **argv UNUSED)
197{

Callers

nothing calls this directly

Calls 5

setup_git_directoryFunction · 0.85
is_writing_gitmodules_okFunction · 0.85
usage_with_optionsFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected