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

Function git_configset_get_bool_or_int

config.c:1973–1984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1971}
1972
1973int git_configset_get_bool_or_int(struct config_set *set, const char *key,
1974 int *is_bool, int *dest)
1975{
1976 const char *value;
1977 struct key_value_info kvi;
1978
1979 if (!git_configset_get_value(set, key, &value, &kvi)) {
1980 *dest = git_config_bool_or_int(key, value, &kvi, is_bool);
1981 return 0;
1982 } else
1983 return 1;
1984}
1985
1986int git_configset_get_maybe_bool(struct config_set *set, const char *key, int *dest)
1987{

Callers 1

Calls 2

git_configset_get_valueFunction · 0.85
git_config_bool_or_intFunction · 0.85

Tested by

no test coverage detected