| 998 | }; |
| 999 | |
| 1000 | static 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 | |
| 1020 | void fetch_config_from_gitmodules(int *max_children, int *recurse_submodules) |
| 1021 | { |
nothing calls this directly
no test coverage detected