Skip to content

Commit c39da2c

Browse files
committed
Merge branch 'ma/remove-config-maybe-bool'
Finishing touches to a recent topic. * ma/remove-config-maybe-bool: config: remove git_config_maybe_bool
2 parents f2ab3a1 + d389028 commit c39da2c

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

Documentation/technical/api-config.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,6 @@ parsing is successful, the return value is the result.
186186
Same as `git_config_bool`, except that integers are returned as-is, and
187187
an `is_bool` flag is unset.
188188

189-
`git_config_maybe_bool`::
190-
Deprecated. Use `git_parse_maybe_bool` instead. They are exactly the
191-
same, except this function takes an unused argument `name`.
192-
193189
`git_parse_maybe_bool`::
194190
Same as `git_config_bool`, except that it returns -1 on error rather
195191
than dying.

config.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -956,11 +956,6 @@ int git_parse_maybe_bool(const char *value)
956956
return -1;
957957
}
958958

959-
int git_config_maybe_bool(const char *name, const char *value)
960-
{
961-
return git_parse_maybe_bool(value);
962-
}
963-
964959
int git_config_bool_or_int(const char *name, const char *value, int *is_bool)
965960
{
966961
int v = git_parse_maybe_bool_text(value);

config.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ extern unsigned long git_config_ulong(const char *, const char *);
5656
extern ssize_t git_config_ssize_t(const char *, const char *);
5757
extern int git_config_bool_or_int(const char *, const char *, int *);
5858
extern int git_config_bool(const char *, const char *);
59-
extern int git_config_maybe_bool(const char *, const char *);
6059
extern int git_config_string(const char **, const char *, const char *);
6160
extern int git_config_pathname(const char **, const char *, const char *);
6261
extern int git_config_set_in_file_gently(const char *, const char *, const char *);

0 commit comments

Comments
 (0)