diff options
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/log.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/builtin/log.c b/builtin/log.c index 4225615e7f..b6d43a4a47 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -868,7 +868,12 @@ static int git_format_config(const char *var, const char *value, void *cb) } if (!strcmp(var, "format.notes")) { int b = git_parse_maybe_bool(value); - show_notes = set_display_notes(¬es_opt, b, b < 0 ? value : NULL); + if (b < 0) + enable_ref_display_notes(¬es_opt, &show_notes, value); + else if (b) + enable_default_display_notes(¬es_opt, &show_notes); + else + disable_display_notes(¬es_opt, &show_notes); return 0; } |