summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-02-05 10:59:05 -0800
committerJunio C Hamano <gitster@pobox.com>2010-02-05 10:59:05 -0800
commitb401a12a2c49d3f3e81e356782d9ca49aaa97faa (patch)
tree3c08d47265838d7b13ae8e2649835159077a6f0c /pretty.c
parent3325cea0f7ef7355f6806b2fc88acdb2e27785ac (diff)
parent7dccadf363f9d9ff564ad34117266b2d557a2bc8 (diff)
downloadgit-b401a12a2c49d3f3e81e356782d9ca49aaa97faa.tar.gz
Merge branch 'jc/maint-limit-note-output' into maint
* jc/maint-limit-note-output: Fix "log --oneline" not to show notes Fix "log" family not to be too agressive about showing notes
Diffstat (limited to 'pretty.c')
-rw-r--r--pretty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretty.c b/pretty.c
index 8f5bd1ab7f..b2ee7fe9de 100644
--- a/pretty.c
+++ b/pretty.c
@@ -1094,7 +1094,7 @@ void pretty_print_commit(enum cmit_fmt fmt, const struct commit *commit,
if (fmt == CMIT_FMT_EMAIL && sb->len <= beginning_of_body)
strbuf_addch(sb, '\n');
- if (fmt != CMIT_FMT_ONELINE)
+ if (context->show_notes)
get_commit_notes(commit, sb, encoding,
NOTES_SHOW_HEADER | NOTES_INDENT);