diff options
author | Junio C Hamano <junio@twinsun.com> | 2005-09-30 14:08:25 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-01 23:19:33 -0700 |
commit | a876ed83be5467d6075da8a16306724cb1babc2a (patch) | |
tree | e059141db27747dda564fa5981c3f27ebeb04cc8 /cache.h | |
parent | ca8db1424d1808a1f78bc9905efd267f7c154d8e (diff) | |
download | git-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |