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

Function git_configset_get_maybe_bool

config.c:1986–1996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1984}
1985
1986int git_configset_get_maybe_bool(struct config_set *set, const char *key, int *dest)
1987{
1988 const char *value;
1989 if (!git_configset_get_value(set, key, &value, NULL)) {
1990 *dest = git_parse_maybe_bool(value);
1991 if (*dest == -1)
1992 return -1;
1993 return 0;
1994 } else
1995 return 1;
1996}
1997
1998static int git_configset_get_pathname(struct config_set *set, const char *key, char **dest)
1999{

Callers 1

Calls 2

git_configset_get_valueFunction · 0.85
git_parse_maybe_boolFunction · 0.85

Tested by

no test coverage detected