summaryrefslogtreecommitdiff
path: root/notes.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-15 14:08:39 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-15 22:58:20 -0700
commit96531a5ede7ede4397eb190411bc20256bca3e93 (patch)
treeb32c0ba889fd41ce8b5feee7f7c67d72936927a8 /notes.c
parent7e0d4ab585bb8bd4dba722c96e811a02b6c2fdda (diff)
downloadgit-96531a5ede7ede4397eb190411bc20256bca3e93.tar.gz
notes.c: mark a private file-scope symbol as static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.c')
-rw-r--r--notes.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/notes.c b/notes.c
index 93e9868d5d..bc454e1eab 100644
--- a/notes.c
+++ b/notes.c
@@ -1196,8 +1196,18 @@ void free_notes(struct notes_tree *t)
memset(t, 0, sizeof(struct notes_tree));
}
-void format_note(struct notes_tree *t, const unsigned char *object_sha1,
- struct strbuf *sb, const char *output_encoding, int flags)
+/*
+ * Fill the given strbuf with the notes associated with the given object.
+ *
+ * If the given notes_tree structure is not initialized, it will be auto-
+ * initialized to the default value (see documentation for init_notes() above).
+ * If the given notes_tree is NULL, the internal/default notes_tree will be
+ * used instead.
+ *
+ * 'flags' is a bitwise combination of the flags for format_display_notes.
+ */
+static void format_note(struct notes_tree *t, const unsigned char *object_sha1,
+ struct strbuf *sb, const char *output_encoding, int flags)
{
static const char utf8[] = "utf-8";
const unsigned char *sha1;