summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanako Shiraishi <nanako3@lavabit.com>2008-10-02 10:14:30 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2008-10-03 01:03:35 (GMT)
commitc5ae6439d454288a809dd7c916e44ec4a5ae0b3b (patch)
tree92365dcf6e934afe845cd88b496b1bc01f8573bd
parent0433bcd9f01b9113a02831c13e364c6a89a0047a (diff)
downloadgit-c5ae6439d454288a809dd7c916e44ec4a5ae0b3b.zip
git-c5ae6439d454288a809dd7c916e44ec4a5ae0b3b.tar.gz
git-c5ae6439d454288a809dd7c916e44ec4a5ae0b3b.tar.bz2
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>
-rw-r--r--commit.c2
-rw-r--r--commit.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/commit.c b/commit.c
index dc0c5bf..c99db16 100644
--- a/commit.c
+++ b/commit.c
@@ -160,7 +160,7 @@ struct commit_graft *read_graft_line(char *buf, int len)
return graft;
}
-int read_graft_file(const char *graft_file)
+static int read_graft_file(const char *graft_file)
{
FILE *fp = fopen(graft_file, "r");
char buf[1024];
diff --git a/commit.h b/commit.h
index de15f4d..4c05864 100644
--- a/commit.h
+++ b/commit.h
@@ -118,7 +118,6 @@ struct commit_graft {
struct commit_graft *read_graft_line(char *buf, int len);
int register_commit_graft(struct commit_graft *, int);
-int read_graft_file(const char *graft_file);
struct commit_graft *lookup_commit_graft(const unsigned char *sha1);
extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *rev2, int cleanup);