Skip to content

Commit

Permalink
commit.c: mark a file-scope private symbol as static
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
gitster committed Sep 16, 2012
1 parent f50fee4 commit 82a7529
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions commit.c
Expand Up @@ -9,6 +9,8 @@
#include "gpg-interface.h"
#include "mergesort.h"

static struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);

int save_commit_buffer = 1;

const char *commit_type = "commit";
Expand Down Expand Up @@ -1073,8 +1075,9 @@ static int excluded_header_field(const char *field, size_t len, const char **exc
return 0;
}

struct commit_extra_header *read_commit_extra_header_lines(const char *buffer, size_t size,
const char **exclude)
static struct commit_extra_header *read_commit_extra_header_lines(
const char *buffer, size_t size,
const char **exclude)
{
struct commit_extra_header *extra = NULL, **tail = &extra, *it = NULL;
const char *line, *next, *eof, *eob;
Expand Down
1 change: 0 additions & 1 deletion commit.h
Expand Up @@ -204,7 +204,6 @@ extern int commit_tree_extended(const struct strbuf *msg, unsigned char *tree,
struct commit_extra_header *);

extern struct commit_extra_header *read_commit_extra_headers(struct commit *, const char **);
extern struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);

extern void free_commit_extra_headers(struct commit_extra_header *extra);

Expand Down

0 comments on commit 82a7529

Please sign in to comment.