summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2009-08-05 05:01:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-08-05 17:34:01 (GMT)
commit6eb996b5707b6d14cf9875a9231f4e909a443665 (patch)
treecd45ef2caf0a45dfe7a5b3f9d5b5cc7dcda2b6fe /transport.h
parent07a4a3b4962e1fd4e40fd877427cddd7428c1bc3 (diff)
downloadgit-6eb996b5707b6d14cf9875a9231f4e909a443665.zip
git-6eb996b5707b6d14cf9875a9231f4e909a443665.tar.gz
git-6eb996b5707b6d14cf9875a9231f4e909a443665.tar.bz2
Add support for external programs for handling native fetches
transport_get() can call transport_native_helper_init() to have list and fetch-ref operations handled by running a separate program as: git remote-<something> <remote> [<url>] This program then accepts, on its stdin, "list" and "fetch <hex> <name>" commands; the former prints out a list of available refs and either their hashes or what they are symrefs to, while the latter fetches them into the local object database and prints a newline when done. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.h')
-rw-r--r--transport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/transport.h b/transport.h
index 51b5397..df87264 100644
--- a/transport.h
+++ b/transport.h
@@ -77,4 +77,7 @@ void transport_unlock_pack(struct transport *transport);
int transport_disconnect(struct transport *transport);
char *transport_anonymize_url(const char *url);
+/* Transport methods defined outside transport.c */
+int transport_helper_init(struct transport *transport);
+
#endif