summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorHeiko Voigt <hvoigt@hvoigt.net>2012-05-14 16:24:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-05-14 18:56:42 (GMT)
commit5e73633dbf8a62190611f6eb438a1a2eaaffa919 (patch)
tree3b4d75ea58902847c8313ef9abdb5c64fea8d09a /cache.h
parentd0f1ea6003d97e63110fa7d50bb07f546a909b6e (diff)
downloadgit-5e73633dbf8a62190611f6eb438a1a2eaaffa919.zip
git-5e73633dbf8a62190611f6eb438a1a2eaaffa919.tar.gz
git-5e73633dbf8a62190611f6eb438a1a2eaaffa919.tar.bz2
teach add_submodule_odb() to look for alternates
Since we allow to link other object databases when loading a submodules database we should also load possible alternates. Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 3a8e125..3a28cb1 100644
--- a/cache.h
+++ b/cache.h
@@ -960,6 +960,7 @@ 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 void add_to_alternates_file(const char *reference);
typedef int alt_odb_fn(struct alternate_object_database *, void *);
extern void foreach_alt_odb(alt_odb_fn, void*);