author | Junio C Hamano <gitster@pobox.com> | |
Wed, 17 Feb 2010 07:59:46 +0000 (23:59 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 17 Feb 2010 17:39:03 +0000 (09:39 -0800) | ||
commit | 8420ccd8b884e1edceca9ea5824f3ff300c0c4ba | |
tree | e3dea24d016ce539ebffc20c32664601c99ea28d | tree | snapshot |
parent | e923eaeb901ff056421b9007adcbbce271caa7b6 | commit | diff |
git_config_maybe_bool()
Some configuration variables can take boolean values in addition to
enumeration specific to them. Introduce git_config_maybe_bool() that
returns 0 or 1 if the given value is boolean, or -1 if not, so that
a parser for such a variable can check for boolean first and then
parse other kinds of values as a fallback.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Some configuration variables can take boolean values in addition to
enumeration specific to them. Introduce git_config_maybe_bool() that
returns 0 or 1 if the given value is boolean, or -1 if not, so that
a parser for such a variable can check for boolean first and then
parse other kinds of values as a fallback.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
config.c | diff | blob | history |