aboutsummaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c
index 84e9f5bb6..e7e08f42e 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -672,6 +672,9 @@ void show_log(struct rev_info *opt)
ctx.reflog_info = opt->reflog_info;
ctx.fmt = opt->commit_format;
pretty_print_commit(&ctx, commit, &msgbuf);
+ if ((ctx.fmt != CMIT_FMT_USERFORMAT) &&
+ ctx.notes_message && *ctx.notes_message)
+ strbuf_addstr(&msgbuf, ctx.notes_message);
if (opt->add_signoff)
append_signoff(&msgbuf, opt->add_signoff);