diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-10-17 21:41:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-10-17 22:42:40 -0700 |
commit | 76141e2e6280101362c3c5ddb22699b6f0458100 (patch) | |
tree | 7d780fe891cc5680a5befaed7d16b20a67a14dc7 /notes.h | |
parent | e297cf5aff0264c16b6c325c0beab71bc04cd496 (diff) | |
download | git-76141e2e6280101362c3c5ddb22699b6f0458100.tar.gz |
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 'notes.h')
-rw-r--r-- | notes.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -237,10 +237,6 @@ void prune_notes(struct notes_tree *t, int flags); */ void free_notes(struct notes_tree *t); -/* Flags controlling how notes are formatted */ -#define NOTES_SHOW_HEADER 1 -#define NOTES_INDENT 2 - struct string_list; struct display_notes_opt { @@ -274,7 +270,7 @@ void init_display_notes(struct display_notes_opt *opt); * You *must* call init_display_notes() before using this function. */ void format_display_notes(const unsigned char *object_sha1, - struct strbuf *sb, const char *output_encoding, int flags); + struct strbuf *sb, const char *output_encoding, int raw); /* * Load the notes tree from each ref listed in 'refs'. The output is |