mirror of
https://github.com/git/git.git
synced 2024-11-28 12:34:08 +08:00
Merge branch 'ma/remove-config-maybe-bool'
Finishing touches to a recent topic. * ma/remove-config-maybe-bool: config: remove git_config_maybe_bool
This commit is contained in:
commit
c39da2c08e
@ -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.
|
||||
|
5
config.c
5
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);
|
||||
|
1
config.h
1
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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user