summaryrefslogtreecommitdiff
path: root/walker.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-04-26 19:53:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-04-27 00:36:17 (GMT)
commitc13b2633f49e3e61b37973204793a4d9ef981175 (patch)
tree54f173438e506190b6bbc02f574ec0ab6b8339d7 /walker.h
parent36c79d2bf893b9957688a6c8c13cc0bf0589e596 (diff)
downloadgit-c13b2633f49e3e61b37973204793a4d9ef981175.zip
git-c13b2633f49e3e61b37973204793a4d9ef981175.tar.gz
git-c13b2633f49e3e61b37973204793a4d9ef981175.tar.bz2
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>
Diffstat (limited to 'walker.h')
-rw-r--r--walker.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/walker.h b/walker.h
index e1d40de..8a149e1 100644
--- a/walker.h
+++ b/walker.h
@@ -5,7 +5,7 @@
struct walker {
void *data;
- int (*fetch_ref)(struct walker *, char *ref, unsigned char *sha1);
+ int (*fetch_ref)(struct walker *, struct ref *ref);
void (*prefetch)(struct walker *, unsigned char *sha1);
int (*fetch)(struct walker *, unsigned char *sha1);
void (*cleanup)(struct walker *);