author | Daniel Barkalow <barkalow@iabervon.org> | |
Sat, 26 Apr 2008 19:53:09 +0000 (15:53 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 27 Apr 2008 00:36:17 +0000 (17:36 -0700) | ||
commit | c13b2633f49e3e61b37973204793a4d9ef981175 | |
tree | 54f173438e506190b6bbc02f574ec0ab6b8339d7 | tree | snapshot |
parent | 36c79d2bf893b9957688a6c8c13cc0bf0589e596 | commit | diff |
Make walker.fetch_ref() take a struct ref.
This simplifies a few things, makes a few things slightly more
complicated, but, more importantly, allows that, when struct ref can
represent a symref, http_fetch_ref() can return one.
Incidentally makes the string that http_fetch_ref() gets include "refs/"
(if appropriate), because that's how the name field of struct ref works.
As far as I can tell, the usage in walker:interpret_target() wouldn't have
worked previously, if it ever would have been used, which it wouldn't
(since the fetch process uses the hash instead of the name of the ref
there).
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This simplifies a few things, makes a few things slightly more
complicated, but, more importantly, allows that, when struct ref can
represent a symref, http_fetch_ref() can return one.
Incidentally makes the string that http_fetch_ref() gets include "refs/"
(if appropriate), because that's how the name field of struct ref works.
As far as I can tell, the usage in walker:interpret_target() wouldn't have
worked previously, if it ever would have been used, which it wouldn't
(since the fetch process uses the hash instead of the name of the ref
there).
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c | diff | blob | history | |
http-walker.c | diff | blob | history | |
http.c | diff | blob | history | |
http.h | diff | blob | history | |
walker.c | diff | blob | history | |
walker.h | diff | blob | history |