commit.c: make read_graft_file() static
This function is not called by any other file. Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Nanako Shiraishi committed
Oct 2, 2008 at 19:14 UTC
c5ae6439d454288a809dd7c916e44ec4a5ae0b3b
2 files changed
+1
-2
commit.c
+1
-1
@@ -160,7 +160,7 @@ struct commit_graft *read_graft_line(char *buf, int len)
160
return graft;
161
}
162
163
-int read_graft_file(const char *graft_file)
163
+static int read_graft_file(const char *graft_file)
164
{
165
FILE *fp = fopen(graft_file, "r");
166
char buf[1024];
commit.h
-1
@@ -118,7 +118,6 @@ struct commit_graft {
118
119
struct commit_graft *read_graft_line(char *buf, int len);
120
int register_commit_graft(struct commit_graft *, int);
121
-int read_graft_file(const char *graft_file);
121
struct commit_graft *lookup_commit_graft(const unsigned char *sha1);
122
123
extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *rev2, int cleanup);