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

Function git_configset_get_bool

config.c:1963–1971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1961}
1962
1963int git_configset_get_bool(struct config_set *set, const char *key, int *dest)
1964{
1965 const char *value;
1966 if (!git_configset_get_value(set, key, &value, NULL)) {
1967 *dest = git_config_bool(key, value);
1968 return 0;
1969 } else
1970 return 1;
1971}
1972
1973int git_configset_get_bool_or_int(struct config_set *set, const char *key,
1974 int *is_bool, int *dest)

Callers 4

repo_config_get_boolFunction · 0.85
is_main_worktree_bareFunction · 0.85
init_worktree_configFunction · 0.85

Calls 2

git_configset_get_valueFunction · 0.85
git_config_boolFunction · 0.85

Tested by

no test coverage detected