summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-04-26 19:53:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-04-27 00:36:18 (GMT)
commitbe885d96fe0ebed47e637f3b0dd24fc5902f7081 (patch)
treeb4c0c29c4b58ffe95c7765ebd38e6089973d7b44 /remote.h
parentc13b2633f49e3e61b37973204793a4d9ef981175 (diff)
downloadgit-be885d96fe0ebed47e637f3b0dd24fc5902f7081.zip
git-be885d96fe0ebed47e637f3b0dd24fc5902f7081.tar.gz
git-be885d96fe0ebed47e637f3b0dd24fc5902f7081.tar.bz2
Make ls-remote http://... list HEAD, like for git://...
This makes a struct ref able to represent a symref, and makes http.c able to recognize one, and makes transport.c look for "HEAD" as a ref in the list, and makes it dereference symrefs for the resulting ref, if any. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index a38774b..ab82308 100644
--- a/remote.h
+++ b/remote.h
@@ -62,6 +62,8 @@ int check_ref_type(const struct ref *ref, int flags);
*/
void free_refs(struct ref *ref);
+int resolve_remote_symref(struct ref *ref, struct ref *list);
+
/*
* Removes and frees any duplicate refs in the map.
*/