summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-10-18 04:41:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-10-18 05:42:40 (GMT)
commit76141e2e6280101362c3c5ddb22699b6f0458100 (patch)
tree7d780fe891cc5680a5befaed7d16b20a67a14dc7 /revision.c
parente297cf5aff0264c16b6c325c0beab71bc04cd496 (diff)
downloadgit-76141e2e6280101362c3c5ddb22699b6f0458100.zip
git-76141e2e6280101362c3c5ddb22699b6f0458100.tar.gz
git-76141e2e6280101362c3c5ddb22699b6f0458100.tar.bz2
format_note(): simplify API
We either stuff the notes message without modification for %N userformat, or format it for human consumption. Using two bits is an overkill that does not benefit anybody. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index a09e60b..ddfba11 100644
--- a/revision.c
+++ b/revision.c
@@ -2236,7 +2236,7 @@ static int commit_match(struct commit *commit, struct rev_info *opt)
if (!buf.len)
strbuf_addstr(&buf, commit->buffer);
format_display_notes(commit->object.sha1, &buf,
- get_log_output_encoding(), 0);
+ get_log_output_encoding(), 1);
}
/* Find either in the commit object, or in the temporary */