Skip to contentSkip to conversation

commit.c: make read_graft_file() static

PATCH New Nanako Shiraishi 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 commit.c: make read_graft_file() static

This function is not called by any other file.

---
 commit.c |    2 +-
 commit.h |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
commit.c +1 -1
index dc0c5bf..c99db16 100644
@@ -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];
commit.h +0 -1
index de15f4d..4c05864 100644
@@ -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);
Signature · 5 lines
1.6.0.2

-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/