summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-09-09 04:49:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-09-09 04:49:50 (GMT)
commit02c6c14d6c304f094b680f583a1dd6e4fe75736c (patch)
treefa598c403c80413a3446045cb5a287b61e38e673 /cache.h
parent00d27937bf0348e7da615f04b65f535a58e096c1 (diff)
parent31224cbdc723d78a310b4cdbbd5abcfcbd44a4e5 (diff)
downloadgit-02c6c14d6c304f094b680f583a1dd6e4fe75736c.zip
git-02c6c14d6c304f094b680f583a1dd6e4fe75736c.tar.gz
git-02c6c14d6c304f094b680f583a1dd6e4fe75736c.tar.bz2
Merge branch 'sb/submodule-clone-rr'
"git clone --resurse-submodules --reference $path $URL" is a way to reduce network transfer cost by borrowing objects in an existing $path repository when cloning the superproject from $URL; it learned to also peek into $path for presense of corresponding repositories of submodules and borrow objects from there when able. * sb/submodule-clone-rr: clone: recursive and reference option triggers submodule alternates clone: implement optional references clone: clarify option_reference as required clone: factor out checking for an alternate path submodule--helper update-clone: allow multiple references submodule--helper module-clone: allow multiple references t7408: merge short tests, factor out testing method t7408: modernize style
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 b780a91..6738050 100644
--- a/cache.h
+++ b/cache.h
@@ -1344,6 +1344,7 @@ extern struct alternate_object_database {
} *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);
extern void add_to_alternates_file(const char *reference);
typedef int alt_odb_fn(struct alternate_object_database *, void *);
extern int foreach_alt_odb(alt_odb_fn, void*);