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

Function parse_update_recurse

submodule-config.c:478–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478static int parse_update_recurse(const char *opt, const char *arg,
479 int die_on_error)
480{
481 switch (git_parse_maybe_bool(arg)) {
482 case 1:
483 return RECURSE_SUBMODULES_ON;
484 case 0:
485 return RECURSE_SUBMODULES_OFF;
486 default:
487 if (die_on_error)
488 die("bad %s argument: %s", opt, arg);
489 return RECURSE_SUBMODULES_ERROR;
490 }
491}
492
493int parse_update_recurse_submodules_arg(const char *opt, const char *arg)
494{

Callers 1

Calls 2

git_parse_maybe_boolFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected