config.c: rename git_config_maybe_bool_text and export it as git_parse_maybe_bool
commit9a549d4397a624a819e881137c519d0ca61fe7e8
authorDave Borowitz <dborowitz@google.com>
Wed, 19 Aug 2015 15:26:44 +0000 (19 11:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Aug 2015 19:43:22 +0000 (19 12:43 -0700)
treefebb1cc17a5f6c8a1048e264adfabaf68d15bbd7
parent87c0d08b3d92c55c233c8a95294a2232a97d97eb
config.c: rename git_config_maybe_bool_text and export it as git_parse_maybe_bool

This helper function does not complain about the config variable
but just silently reports failure to the caller.  It is useful for
callers that need to parse any string that could be boolean or other
string (e.g. tristate yes/no/auto).

Signed-off-by: Dave Borowitz <dborowitz@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
config.c