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

Function parse_fetch_recurse

submodule-config.c:419–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419static int parse_fetch_recurse(const char *opt, const char *arg,
420 int die_on_error)
421{
422 switch (git_parse_maybe_bool(arg)) {
423 case 1:
424 return RECURSE_SUBMODULES_ON;
425 case 0:
426 return RECURSE_SUBMODULES_OFF;
427 default:
428 if (!strcmp(arg, "on-demand"))
429 return RECURSE_SUBMODULES_ON_DEMAND;
430 /*
431 * Please update $__git_fetch_recurse_submodules in
432 * git-completion.bash when you add new options.
433 */
434 if (die_on_error)
435 die("bad %s argument: %s", opt, arg);
436 else
437 return RECURSE_SUBMODULES_ERROR;
438 }
439}
440
441int parse_submodule_fetchjobs(const char *var, const char *value,
442 const struct key_value_info *kvi)

Callers 2

parse_configFunction · 0.85

Calls 2

git_parse_maybe_boolFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected