Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
commit.c: mark a file-scope private symbol as static
author
Junio C Hamano
<gitster@pobox.com>
Sat, 15 Sep 2012 20:58:15 +0000
(13:58 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Sep 2012 05:58:20 +0000
(22:58 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
patch
|
blob
|
history
commit.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
f50fee4
)
diff --git
a/commit.c
b/commit.c
index 0ea441d13b1430231f30d9524aed88b9719290b6..02467676a3e70684065ed668b53e64c1cc561e1e 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-9,6
+9,8
@@
#include "gpg-interface.h"
#include "mergesort.h"
#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";
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;
}
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;
{
struct commit_extra_header *extra = NULL, **tail = &extra, *it = NULL;
const char *line, *next, *eof, *eob;
diff --git
a/commit.h
b/commit.h
index 6edce876739672b4fde2b6970e7ff55b8a921743..9f2131318d4c43fdaaca40e45e45e7d1af61cdfe 100644
(file)
--- a/
commit.h
+++ b/
commit.h
@@
-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 **);
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);
extern void free_commit_extra_headers(struct commit_extra_header *extra);