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

Function git_parse_maybe_bool_text

parse.c:166–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166int git_parse_maybe_bool_text(const char *value)
167{
168 if (!value)
169 return 1;
170 if (!*value)
171 return 0;
172 if (!strcasecmp(value, "true")
173 || !strcasecmp(value, "yes")
174 || !strcasecmp(value, "on"))
175 return 1;
176 if (!strcasecmp(value, "false")
177 || !strcasecmp(value, "no")
178 || !strcasecmp(value, "off"))
179 return 0;
180 return -1;
181}
182
183int git_parse_maybe_bool(const char *value)
184{

Callers 7

git_config_bool_or_intFunction · 0.85
parse_autocorrectFunction · 0.85
git_default_core_configFunction · 0.85
git_parse_maybe_boolFunction · 0.85
git_merge_configFunction · 0.85
git_pack_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected