Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add '%N'-format for pretty-printing commit notes
[gitweb.git]
/
pretty.c
diff --git
a/pretty.c
b/pretty.c
index 01eadd0482f234e2e89ce1e78dbcb1b3a303278e..7f350bbdff050041f541d227de6bfe20ec7fe510 100644
(file)
--- 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. */