notes.c: mark a private file-scope symbol as static

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Sep 15, 2012 at 14:08 UTC 96531a5ede7ede4397eb190411bc20256bca3e93
2 files changed +12 -16
notes.c
+12 -2
@@ -1196,8 +1196,18 @@ void free_notes(struct notes_tree *t)
1196 memset(t, 0, sizeof(struct notes_tree));
1197 }
1198
1199 -void format_note(struct notes_tree *t, const unsigned char *object_sha1,
1200 - struct strbuf *sb, const char *output_encoding, int flags)
1199 +/*
1200 + * Fill the given strbuf with the notes associated with the given object.
1201 + *
1202 + * If the given notes_tree structure is not initialized, it will be auto-
1203 + * initialized to the default value (see documentation for init_notes() above).
1204 + * If the given notes_tree is NULL, the internal/default notes_tree will be
1205 + * used instead.
1206 + *
1207 + * 'flags' is a bitwise combination of the flags for format_display_notes.
1208 + */
1209 +static void format_note(struct notes_tree *t, const unsigned char *object_sha1,
1210 + struct strbuf *sb, const char *output_encoding, int flags)
1211 {
1212 static const char utf8[] = "utf-8";
1213 const unsigned char *sha1;
notes.h
-14
@@ -241,20 +241,6 @@ void free_notes(struct notes_tree *t);
241 #define NOTES_SHOW_HEADER 1
242 #define NOTES_INDENT 2
243
244 -/*
245 - * Fill the given strbuf with the notes associated with the given object.
246 - *
247 - * If the given notes_tree structure is not initialized, it will be auto-
248 - * initialized to the default value (see documentation for init_notes() above).
249 - * If the given notes_tree is NULL, the internal/default notes_tree will be
250 - * used instead.
251 - *
252 - * 'flags' is a bitwise combination of the above formatting flags.
253 - */
254 -void format_note(struct notes_tree *t, const unsigned char *object_sha1,
255 - struct strbuf *sb, const char *output_encoding, int flags);
256 -
257 -
244 struct string_list;
245
246 struct display_notes_opt {