| 1984 | } |
| 1985 | |
| 1986 | int git_configset_get_maybe_bool(struct config_set *set, const char *key, int *dest) |
| 1987 | { |
| 1988 | const char *value; |
| 1989 | if (!git_configset_get_value(set, key, &value, NULL)) { |
| 1990 | *dest = git_parse_maybe_bool(value); |
| 1991 | if (*dest == -1) |
| 1992 | return -1; |
| 1993 | return 0; |
| 1994 | } else |
| 1995 | return 1; |
| 1996 | } |
| 1997 | |
| 1998 | static int git_configset_get_pathname(struct config_set *set, const char *key, char **dest) |
| 1999 | { |
no test coverage detected