Merge branch 'js/notes'
* js/notes: git-notes: fix printing of multi-line notes notes: fix core.notesRef documentation Add an expensive test for git-notes Speed up git notes lookup Add a script to edit/inspect notes Introduce commit notes Conflicts: pretty.c
This commit is contained in:
5
pretty.c
5
pretty.c
@ -6,6 +6,7 @@
|
||||
#include "string-list.h"
|
||||
#include "mailmap.h"
|
||||
#include "log-tree.h"
|
||||
#include "notes.h"
|
||||
#include "color.h"
|
||||
|
||||
static char *user_format;
|
||||
@ -920,5 +921,9 @@ 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)
|
||||
get_commit_notes(commit, sb, encoding);
|
||||
|
||||
free(reencoded);
|
||||
}
|
||||
|
Reference in New Issue
Block a user