]> git.ipfire.org Git - thirdparty/git.git/commit
Add support for external programs for handling native fetches
authorDaniel Barkalow <barkalow@iabervon.org>
Wed, 5 Aug 2009 05:01:53 +0000 (01:01 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Aug 2009 17:34:01 +0000 (10:34 -0700)
commit6eb996b5707b6d14cf9875a9231f4e909a443665
treecd45ef2caf0a45dfe7a5b3f9d5b5cc7dcda2b6fe
parent07a4a3b4962e1fd4e40fd877427cddd7428c1bc3
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>
Documentation/git-remote-helpers.txt [new file with mode: 0644]
Makefile
transport-helper.c [new file with mode: 0644]
transport.h