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

Function gitmodules_fetch_config

submodule-config.c:1000–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998};
999
1000static int gitmodules_fetch_config(const char *var, const char *value,
1001 const struct config_context *ctx,
1002 void *cb)
1003{
1004 struct fetch_config *config = cb;
1005 if (!strcmp(var, "submodule.fetchjobs")) {
1006 if (config->max_children)
1007 *(config->max_children) =
1008 parse_submodule_fetchjobs(var, value, ctx->kvi);
1009 return 0;
1010 } else if (!strcmp(var, "fetch.recursesubmodules")) {
1011 if (config->recurse_submodules)
1012 *(config->recurse_submodules) =
1013 parse_fetch_recurse_submodules_arg(var, value);
1014 return 0;
1015 }
1016
1017 return 0;
1018}
1019
1020void fetch_config_from_gitmodules(int *max_children, int *recurse_submodules)
1021{

Callers

nothing calls this directly

Tested by

no test coverage detected