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

Function git_parse_maybe_bool

parse.c:183–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183int git_parse_maybe_bool(const char *value)
184{
185 int v = git_parse_maybe_bool_text(value);
186 if (0 <= v)
187 return v;
188 if (git_parse_int(value, &v))
189 return !!v;
190 return -1;
191}
192
193/*
194 * Parse environment variable 'k' as a boolean (in various

Callers 15

git_config_boolFunction · 0.85
merge_recursive_configFunction · 0.85
match_atom_bool_argFunction · 0.85
rebase_parse_valueFunction · 0.85
option_parse_push_signedFunction · 0.85
parse_fetch_recurseFunction · 0.85
parse_update_recurseFunction · 0.85
parse_push_recurseFunction · 0.85
prepare_repo_settingsFunction · 0.85

Calls 2

git_parse_intFunction · 0.85

Tested by 1

cmd__env_helperFunction · 0.68