diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-20 22:02:01 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-20 22:02:01 -0700 |
commit | 8da197755450d4f16018bd4b5486dc8ed88b0f2a (patch) | |
tree | 9317d63e33d83995b6346eea465a4d290f991087 /cache.h | |
parent | cb5d709ff8a4bae19d57a470ba2b137c25938a44 (diff) | |
download | git-8da197755450d4f16018bd4b5486dc8ed88b0f2a.tar.gz git-8da197755450d4f16018bd4b5486dc8ed88b0f2a.tar.xz |
Tell between packed, unpacked and symbolic refs.
This adds a "int *flag" parameter to resolve_ref() and makes
for_each_ref() family to call callback function with an extra
"int flag" parameter. They are used to give two bits of
information (REF_ISSYMREF and REF_ISPACKED) about the ref.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -286,7 +286,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); +extern const char *resolve_ref(const char *path, unsigned char *sha1, int, int *); extern int create_symref(const char *ref, const char *refs_heads_master); extern int validate_symref(const char *ref); |