Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

commit.c: make read_graft_file() static

This function is not called by any other file.

Signed-off-by: Nanako Shiraishi <>
Signed-off-by: Shawn O. Pearce <>
  • Loading branch information...
commit c5ae6439d454288a809dd7c916e44ec4a5ae0b3b 1 parent 0433bcd
Nanako Shiraishi authored spearce committed
Showing with 1 addition and 2 deletions.
  1. +1 −1  commit.c
  2. +0 −1  commit.h
2  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];
1  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);
Please sign in to comment.
Something went wrong with that request. Please try again.