Skip to content

Commit 167832c

Browse files
committed
shallow.c: make check_shallow_file_for_update() static
No external callers exist. Signed-off-by: Junio C Hamano <[email protected]>
1 parent a355b11 commit 167832c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

commit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ extern int for_each_commit_graft(each_commit_graft_fn, void *);
254254
extern int is_repository_shallow(void);
255255
extern struct commit_list *get_shallow_commits(struct object_array *heads,
256256
int depth, int shallow_flag, int not_shallow_flag);
257-
extern void check_shallow_file_for_update(void);
258257
extern void set_alternate_shallow_file(const char *path, int override);
259258
extern int write_shallow_commits(struct strbuf *out, int use_pack_protocol,
260259
const struct sha1_array *extra);

shallow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ struct commit_list *get_shallow_commits(struct object_array *heads, int depth,
137137
return result;
138138
}
139139

140-
void check_shallow_file_for_update(void)
140+
static void check_shallow_file_for_update(void)
141141
{
142142
if (is_shallow == -1)
143143
die("BUG: shallow must be initialized by now");

0 commit comments

Comments
 (0)