aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junio@twinsun.com>2005-09-30 14:08:25 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-01 23:19:33 -0700
commita876ed83be5467d6075da8a16306724cb1babc2a (patch)
treee059141db27747dda564fa5981c3f27ebeb04cc8 /cache.h
parentca8db1424d1808a1f78bc9905efd267f7c154d8e (diff)
downloadgit-a876ed83be5467d6075da8a16306724cb1babc2a.tar.gz
git-a876ed83be5467d6075da8a16306724cb1babc2a.tar.xz
Use resolve_ref() to implement read_ref().
Symbolic refs are understood by resolve_ref(), so existing read_ref() users will automatically understand them as well. Signed-off-by: Junio C Hamano <junio@twinsun.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 958c96e14..63823c352 100644
--- a/cache.h
+++ b/cache.h
@@ -230,6 +230,7 @@ extern int get_sha1(const char *str, unsigned char *sha1);
extern int get_sha1_hex(const char *hex, unsigned char *sha1);
extern char *sha1_to_hex(const unsigned char *sha1); /* static buffer result! */
extern int read_ref(const char *filename, unsigned char *sha1);
+extern const char *resolve_ref(const char *path, unsigned char *sha1, int);
/* General helper functions */
extern void usage(const char *err) NORETURN;