Skip to content

Commit 82a7529

Browse files
committed
commit.c: mark a file-scope private symbol as static
Signed-off-by: Junio C Hamano <[email protected]>
1 parent f50fee4 commit 82a7529

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

commit.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#include "gpg-interface.h"
1010
#include "mergesort.h"
1111

12+
static struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);
13+
1214
int save_commit_buffer = 1;
1315

1416
const char *commit_type = "commit";
@@ -1073,8 +1075,9 @@ static int excluded_header_field(const char *field, size_t len, const char **exc
10731075
return 0;
10741076
}
10751077

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)
10781081
{
10791082
struct commit_extra_header *extra = NULL, **tail = &extra, *it = NULL;
10801083
const char *line, *next, *eof, *eob;

commit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ extern int commit_tree_extended(const struct strbuf *msg, unsigned char *tree,
204204
struct commit_extra_header *);
205205

206206
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 **);
208207

209208
extern void free_commit_extra_headers(struct commit_extra_header *extra);
210209

0 commit comments

Comments
 (0)