diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2009-08-05 01:01:53 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-05 10:34:01 -0700 |
commit | 6eb996b5707b6d14cf9875a9231f4e909a443665 (patch) | |
tree | cd45ef2caf0a45dfe7a5b3f9d5b5cc7dcda2b6fe /transport.h | |
parent | 07a4a3b4962e1fd4e40fd877427cddd7428c1bc3 (diff) | |
download | git-6eb996b5707b6d14cf9875a9231f4e909a443665.tar.gz |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/transport.h b/transport.h index 51b539778c..df87264637 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 |