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

Function git_config_bool_or_int

config.c:1280–1290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1278}
1279
1280int git_config_bool_or_int(const char *name, const char *value,
1281 const struct key_value_info *kvi, int *is_bool)
1282{
1283 int v = git_parse_maybe_bool_text(value);
1284 if (0 <= v) {
1285 *is_bool = 1;
1286 return v;
1287 }
1288 *is_bool = 0;
1289 return git_config_int(name, value, kvi);
1290}
1291
1292int git_config_bool(const char *name, const char *value)
1293{

Callers 8

fmt_merge_msg_configFunction · 0.85
populate_opts_cbFunction · 0.85
normalize_valueFunction · 0.85
git_status_configFunction · 0.85
git_commit_configFunction · 0.85
fsmonitor_configFunction · 0.85

Calls 2

git_config_intFunction · 0.85

Tested by

no test coverage detected