Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-24 00:13:10 +0300
committerJunio C Hamano <gitster@pobox.com>2017-08-24 00:13:10 +0300
commit3830759c1c91726a97adb2e97e2de08aec60f25a (patch)
tree565ce768813ae1c98438dada58f8fc7958630e52 /sha1_file.c
parent8a43d3bae50eeb48893d45affbfc772dbac78b6c (diff)
parent2456990dfd93dee6d1906d774db112056534b57b (diff)
Merge branch 'sb/sha1-file-cleanup'
Code clean-up. * sb/sha1-file-cleanup: sha1_file: make read_info_alternates static
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 79feb1a305..189a1c3cdd 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -347,6 +347,7 @@ static int alt_odb_usable(struct strbuf *path, const char *normalized_objdir)
* SHA1, an extra slash for the first level indirection, and the
* terminating NUL.
*/
+static void read_info_alternates(const char * relative_base, int depth);
static int link_alt_odb_entry(const char *entry, const char *relative_base,
int depth, const char *normalized_objdir)
{
@@ -448,7 +449,7 @@ static void link_alt_odb_entries(const char *alt, int len, int sep,
strbuf_release(&objdirbuf);
}
-void read_info_alternates(const char * relative_base, int depth)
+static void read_info_alternates(const char * relative_base, int depth)
{
char *map;
size_t mapsz;