MCPcopy Index your code
hub / github.com/git/git / git_default_submodule_config

Function git_default_submodule_config

submodule.c:203–212  ·  view source on GitHub ↗

Cheap function that only determines if we're interested in submodules at all */

Source from the content-addressed store, hash-verified

201
202/* Cheap function that only determines if we're interested in submodules at all */
203int git_default_submodule_config(const char *var, const char *value,
204 void *cb UNUSED)
205{
206 if (!strcmp(var, "submodule.recurse")) {
207 int v = git_config_bool(var, value) ?
208 RECURSE_SUBMODULES_ON : RECURSE_SUBMODULES_OFF;
209 config_update_recurse_submodules = v;
210 }
211 return 0;
212}
213
214int option_parse_recurse_submodules_worktree_updater(const struct option *opt,
215 const char *arg, int unset)

Callers 3

git_reset_configFunction · 0.85
git_checkout_configFunction · 0.85
git_read_tree_configFunction · 0.85

Calls 1

git_config_boolFunction · 0.85

Tested by

no test coverage detected