Skip to content

Commit

Permalink
commit.c: make read_graft_file() static
Browse files Browse the repository at this point in the history
This function is not called by any other file.

Signed-off-by: Nanako Shiraishi <[email protected]>
Signed-off-by: Shawn O. Pearce <[email protected]>
  • Loading branch information
Nanako Shiraishi authored and spearce committed Oct 3, 2008
1 parent 0433bcd commit c5ae643
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
1 change: 0 additions & 1 deletion commit.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c5ae643

Please sign in to comment.