aboutsummaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-15 13:58:15 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-15 22:58:20 -0700
commit82a75299fa63a388a9a4823bcb687e50964d95fb (patch)
treeee72ab52517afbd1b7a119e5a5b8b9ae8fb93f91 /commit.c
parentf50fee4a0476dfd1315612f49244e7050280bf68 (diff)
downloadgit-82a75299fa63a388a9a4823bcb687e50964d95fb.tar.gz
git-82a75299fa63a388a9a4823bcb687e50964d95fb.tar.xz
commit.c: mark a file-scope private symbol as static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/commit.c b/commit.c
index 0ea441d13..02467676a 100644
--- a/commit.c
+++ b/commit.c
@@ -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";
@@ -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;