Skip to content

Commit 96531a5

Browse files
committed
notes.c: mark a private file-scope symbol as static
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7e0d4ab commit 96531a5

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

notes.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,18 @@ void free_notes(struct notes_tree *t)
11961196
memset(t, 0, sizeof(struct notes_tree));
11971197
}
11981198

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)
12011211
{
12021212
static const char utf8[] = "utf-8";
12031213
const unsigned char *sha1;

notes.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -241,20 +241,6 @@ void free_notes(struct notes_tree *t);
241241
#define NOTES_SHOW_HEADER 1
242242
#define NOTES_INDENT 2
243243

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-
258244
struct string_list;
259245

260246
struct display_notes_opt {

0 commit comments

Comments
 (0)