From 2456990dfd93dee6d1906d774db112056534b57b Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Tue, 15 Aug 2017 13:13:19 -0700 Subject: sha1_file: make read_info_alternates static read_info_alternates is not used from outside, so let's make it static. We have to declare the function before link_alt_odb_entry instead of moving the code around, link_alt_odb_entry calls read_info_alternates, which in turn calls link_alt_odb_entry. Signed-off-by: Stefan Beller Reviewed-by: Jeff King Signed-off-by: Junio C Hamano --- cache.h | 1 - 1 file changed, 1 deletion(-) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 258ce6b0f0..11a2bcd38b 100644 --- a/cache.h +++ b/cache.h @@ -1387,7 +1387,6 @@ extern struct alternate_object_database { char base[FLEX_ARRAY]; /* more */ } *alt_odb_list; extern void prepare_alt_odb(void); -extern void read_info_alternates(const char * relative_base, int depth); extern char *compute_alternate_path(const char *path, struct strbuf *err); typedef int alt_odb_fn(struct alternate_object_database *, void *); extern int foreach_alt_odb(alt_odb_fn, void*); -- cgit v1.2.3