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

Function option_parse_recurse_submodules_worktree_updater

submodule.c:214–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214int option_parse_recurse_submodules_worktree_updater(const struct option *opt,
215 const char *arg, int unset)
216{
217 if (unset) {
218 config_update_recurse_submodules = RECURSE_SUBMODULES_OFF;
219 return 0;
220 }
221 if (arg)
222 config_update_recurse_submodules =
223 parse_update_recurse_submodules_arg(opt->long_name,
224 arg);
225 else
226 config_update_recurse_submodules = RECURSE_SUBMODULES_ON;
227
228 return 0;
229}
230
231/*
232 * Determine if a submodule has been initialized at a given 'path'

Callers

nothing calls this directly

Tested by

no test coverage detected