mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'ma/parse-maybe-bool'
Code clean-up.
* ma/parse-maybe-bool:
parse_decoration_style: drop unused argument `var`
treewide: deprecate git_config_maybe_bool, use git_parse_maybe_bool
config: make git_{config,parse}_maybe_bool equivalent
config: introduce git_parse_maybe_bool_text
t5334: document that git push --signed=1 does not work
Doc/git-{push,send-pack}: correct --sign= to --signed=
This commit is contained in:
2
pager.c
2
pager.c
@@ -194,7 +194,7 @@ static int pager_command_config(const char *var, const char *value, void *vdata)
|
||||
const char *cmd;
|
||||
|
||||
if (skip_prefix(var, "pager.", &cmd) && !strcmp(cmd, data->cmd)) {
|
||||
int b = git_config_maybe_bool(var, value);
|
||||
int b = git_parse_maybe_bool(value);
|
||||
if (b >= 0)
|
||||
data->want = b;
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user