summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2009-10-09 10:22:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-10-20 02:00:24 (GMT)
commit8b208f0213ed349ecb2ab8f7bb6c5072f8011a70 (patch)
tree783f393b4bb6cae0b5fcd553316f4f4e74f83cb8 /pretty.c
parentc56fcc89b951f3e8c9240ea02676b2eef5417da6 (diff)
downloadgit-8b208f0213ed349ecb2ab8f7bb6c5072f8011a70.zip
git-8b208f0213ed349ecb2ab8f7bb6c5072f8011a70.tar.gz
git-8b208f0213ed349ecb2ab8f7bb6c5072f8011a70.tar.bz2
Add '%N'-format for pretty-printing commit notes
Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
-rw-r--r--pretty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pretty.c b/pretty.c
index 01eadd0..7f350bb 100644
--- a/pretty.c
+++ b/pretty.c
@@ -702,6 +702,10 @@ static size_t format_commit_item(struct strbuf *sb, const char *placeholder,
case 'd':
format_decoration(sb, commit);
return 1;
+ case 'N':
+ get_commit_notes(commit, sb, git_log_output_encoding ?
+ git_log_output_encoding : git_commit_encoding, 0);
+ return 1;
}
/* For the rest we have to parse the commit header. */