summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-19 01:47:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-19 01:47:55 (GMT)
commitc39da2c08ecc7f3186d83c4fc733401ee98df67f (patch)
tree67a532b9f4a891d70b5493df9d6e42d2631aea31
parentf2ab3a10b5d857df9367291096b01a7c4bb74e64 (diff)
parentd389028695940f74c62e2d8207432feb96f4262a (diff)
downloadgit-c39da2c08ecc7f3186d83c4fc733401ee98df67f.zip
git-c39da2c08ecc7f3186d83c4fc733401ee98df67f.tar.gz
git-c39da2c08ecc7f3186d83c4fc733401ee98df67f.tar.bz2
Merge branch 'ma/remove-config-maybe-bool'
Finishing touches to a recent topic. * ma/remove-config-maybe-bool: config: remove git_config_maybe_bool
-rw-r--r--Documentation/technical/api-config.txt4
-rw-r--r--config.c5
-rw-r--r--config.h1
3 files changed, 0 insertions, 10 deletions
diff --git a/Documentation/technical/api-config.txt b/Documentation/technical/api-config.txt
index 7a83a3a..9a778b0 100644
--- a/Documentation/technical/api-config.txt
+++ b/Documentation/technical/api-config.txt
@@ -186,10 +186,6 @@ parsing is successful, the return value is the result.
Same as `git_config_bool`, except that integers are returned as-is, and
an `is_bool` flag is unset.
-`git_config_maybe_bool`::
-Deprecated. Use `git_parse_maybe_bool` instead. They are exactly the
-same, except this function takes an unused argument `name`.
-
`git_parse_maybe_bool`::
Same as `git_config_bool`, except that it returns -1 on error rather
than dying.
diff --git a/config.c b/config.c
index 7931182..cd5a69e 100644
--- a/config.c
+++ b/config.c
@@ -956,11 +956,6 @@ int git_parse_maybe_bool(const char *value)
return -1;
}
-int git_config_maybe_bool(const char *name, const char *value)
-{
- return git_parse_maybe_bool(value);
-}
-
int git_config_bool_or_int(const char *name, const char *value, int *is_bool)
{
int v = git_parse_maybe_bool_text(value);
diff --git a/config.h b/config.h
index 97471b8..456b3d1 100644
--- a/config.h
+++ b/config.h
@@ -56,7 +56,6 @@ extern unsigned long git_config_ulong(const char *, const char *);
extern ssize_t git_config_ssize_t(const char *, const char *);
extern int git_config_bool_or_int(const char *, const char *, int *);
extern int git_config_bool(const char *, const char *);
-extern int git_config_maybe_bool(const char *, const char *);
extern int git_config_string(const char **, const char *, const char *);
extern int git_config_pathname(const char **, const char *, const char *);
extern int git_config_set_in_file_gently(const char *, const char *, const char *);