summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-04-17 19:32:30 -0400
committerJunio C Hamano <gitster@pobox.com>2008-05-04 17:41:44 -0700
commitbef70b22ba63d71c1ae2e070e64ff9863ea1ad14 (patch)
treec8f02795dc1d86cb5459d034604896d8b3a76ac8 /cache.h
parentea3cd5c7c63fadacd66c364ae4b8c6d01e5809b1 (diff)
downloadgit-bef70b22ba63d71c1ae2e070e64ff9863ea1ad14.tar.gz
Add a library function to add an alternate to the alternates file
This is in the core so that, if the alternates file has already been read, the addition can be parsed and put into effect for the current process. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> 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 396eabf6ed..9da9179afd 100644
--- a/cache.h
+++ b/cache.h
@@ -599,6 +599,7 @@ extern struct alternate_object_database {
char base[FLEX_ARRAY]; /* more */
} *alt_odb_list;
extern void prepare_alt_odb(void);
+extern void add_to_alternates_file(const char *reference);
struct pack_window {
struct pack_window *next;