aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2015-08-19 11:26:44 -0400
committerJunio C Hamano <gitster@pobox.com>2015-08-19 12:43:22 -0700
commit9a549d4397a624a819e881137c519d0ca61fe7e8 (patch)
treefebb1cc17a5f6c8a1048e264adfabaf68d15bbd7 /cache.h
parent87c0d08b3d92c55c233c8a95294a2232a97d97eb (diff)
downloadgit-9a549d4397a624a819e881137c519d0ca61fe7e8.tar.gz
git-9a549d4397a624a819e881137c519d0ca61fe7e8.tar.xz
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>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index badf3da34..dc0e5a29d 100644
--- a/cache.h
+++ b/cache.h
@@ -1375,6 +1375,7 @@ extern int git_config_with_options(config_fn_t fn, void *,
int respect_includes);
extern int git_config_early(config_fn_t fn, void *, const char *repo_config);
extern int git_parse_ulong(const char *, unsigned long *);
+extern int git_parse_maybe_bool(const char *);
extern int git_config_int(const char *, const char *);
extern int64_t git_config_int64(const char *, const char *);
extern unsigned long git_config_ulong(const char *, const char *);