summaryrefslogtreecommitdiff
path: root/builtin-clone.c
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2009-11-18 01:42:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-18 05:45:44 (GMT)
commit3714831189b32591ffe33c08e209a9a61c25a2f6 (patch)
tree9ca6c917ee450149a41fa2538e48ab4c3309856e /builtin-clone.c
parent0a4da29dd806bca41cc615961d034b5a5fc30ff7 (diff)
downloadgit-3714831189b32591ffe33c08e209a9a61c25a2f6.zip
git-3714831189b32591ffe33c08e209a9a61c25a2f6.tar.gz
git-3714831189b32591ffe33c08e209a9a61c25a2f6.tar.bz2
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 'builtin-clone.c')
-rw-r--r--builtin-clone.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-clone.c b/builtin-clone.c
index 5762a6f..32f22e1 100644
--- a/builtin-clone.c
+++ b/builtin-clone.c
@@ -360,9 +360,10 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
const char *repo_name, *repo, *work_tree, *git_dir;
char *path, *dir;
int dest_exists;
- const struct ref *refs, *remote_head, *mapped_refs;
+ const struct ref *refs, *remote_head;
const struct ref *remote_head_points_at;
const struct ref *our_head_points_at;
+ struct ref *mapped_refs;
struct strbuf key = STRBUF_INIT, value = STRBUF_INIT;
struct strbuf branch_top = STRBUF_INIT, reflog_msg = STRBUF_INIT;
struct transport *transport = NULL;