| 164 | } |
| 165 | |
| 166 | int 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 | |
| 183 | int git_parse_maybe_bool(const char *value) |
| 184 | { |
no outgoing calls
no test coverage detected