diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2009-11-18 02:42:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-17 21:45:44 -0800 |
commit | 3714831189b32591ffe33c08e209a9a61c25a2f6 (patch) | |
tree | 9ca6c917ee450149a41fa2538e48ab4c3309856e /transport-helper.c | |
parent | 0a4da29dd806bca41cc615961d034b5a5fc30ff7 (diff) | |
download | git-3714831189b32591ffe33c08e209a9a61c25a2f6.tar.gz git-3714831189b32591ffe33c08e209a9a61c25a2f6.tar.xz |
Allow fetch to modify refs
This allows the transport to use the null sha1 for a ref reported to
be present in the remote repository to indicate that a ref exists but
its actual value is presently unknown and will be set if the objects
are fetched.
Also adds documentation to the API to specify exactly what the methods
should do and how they should interpret arguments.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
-rw-r--r-- | transport-helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transport-helper.c b/transport-helper.c index e24fcbb17..53d8f08ee 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -75,7 +75,7 @@ static int release_helper(struct transport *transport) } static int fetch_with_fetch(struct transport *transport, - int nr_heads, const struct ref **to_fetch) + int nr_heads, struct ref **to_fetch) { struct child_process *helper = get_helper(transport); FILE *file = xfdopen(helper->out, "r"); @@ -99,7 +99,7 @@ static int fetch_with_fetch(struct transport *transport, } static int fetch(struct transport *transport, - int nr_heads, const struct ref **to_fetch) + int nr_heads, struct ref **to_fetch) { struct helper_data *data = transport->data; int i, count; |