Skip to content

Commit c5ae643

Browse files
Nanako Shiraishispearce
authored andcommitted
commit.c: make read_graft_file() static
This function is not called by any other file. Signed-off-by: Nanako Shiraishi <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 0433bcd commit c5ae643

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ struct commit_graft *read_graft_line(char *buf, int len)
160160
return graft;
161161
}
162162

163-
int read_graft_file(const char *graft_file)
163+
static int read_graft_file(const char *graft_file)
164164
{
165165
FILE *fp = fopen(graft_file, "r");
166166
char buf[1024];

commit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ struct commit_graft {
118118

119119
struct commit_graft *read_graft_line(char *buf, int len);
120120
int register_commit_graft(struct commit_graft *, int);
121-
int read_graft_file(const char *graft_file);
122121
struct commit_graft *lookup_commit_graft(const unsigned char *sha1);
123122

124123
extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *rev2, int cleanup);

0 commit comments

Comments
 (0)