| 1278 | } |
| 1279 | |
| 1280 | int 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 | |
| 1292 | int git_config_bool(const char *name, const char *value) |
| 1293 | { |
no test coverage detected