commit.c: mark a file-scope private symbol as static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Sep 15, 2012 at 13:58 UTC
82a75299fa63a388a9a4823bcb687e50964d95fb
2 files changed
+5
-3
commit.c
+5
-2
@@ -9,6 +9,8 @@
9
#include "gpg-interface.h"
10
#include "mergesort.h"
11
12
+static struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);
13
+
14
int save_commit_buffer = 1;
15
16
const char *commit_type = "commit";
@@ -1073,8 +1075,9 @@ static int excluded_header_field(const char *field, size_t len, const char **exc
1075
return 0;
1076
}
1077
1076
-struct commit_extra_header *read_commit_extra_header_lines(const char *buffer, size_t size,
1077
- const char **exclude)
1078
+static struct commit_extra_header *read_commit_extra_header_lines(
1079
+ const char *buffer, size_t size,
1080
+ const char **exclude)
1081
{
1082
struct commit_extra_header *extra = NULL, **tail = &extra, *it = NULL;
1083
const char *line, *next, *eof, *eob;
commit.h
-1
@@ -204,7 +204,6 @@ extern int commit_tree_extended(const struct strbuf *msg, unsigned char *tree,
204
struct commit_extra_header *);
205
206
extern struct commit_extra_header *read_commit_extra_headers(struct commit *, const char **);
207
-extern struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);
207
208
extern void free_commit_extra_headers(struct commit_extra_header *extra);
209