diff options
author | Junio C Hamano <junkio@cox.net> | 2006-11-19 13:22:44 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-19 18:45:44 -0800 |
commit | cf0adba7885342e1bbcf0689fece9d13e39784b4 (patch) | |
tree | c6559d40439c8e28fb0634292738e00693deb88e /refs.h | |
parent | do_for_each_ref: perform the same sanity check for leftovers. (diff) | |
download | tgif-cf0adba7885342e1bbcf0689fece9d13e39784b4.tar.xz |
Store peeled refs in packed-refs file.
This would speed up "show-ref -d" in a repository with mostly
packed tags.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -16,6 +16,8 @@ struct ref_lock { */ #define REF_ISSYMREF 01 #define REF_ISPACKED 02 +#define REF_ISPEELED 04 /* internal use */ + typedef int each_ref_fn(const char *refname, const unsigned char *sha1, int flags, void *cb_data); extern int head_ref(each_ref_fn, void *); extern int for_each_ref(each_ref_fn, void *); @@ -23,6 +25,8 @@ extern int for_each_tag_ref(each_ref_fn, void *); extern int for_each_branch_ref(each_ref_fn, void *); extern int for_each_remote_ref(each_ref_fn, void *); +extern int peel_ref(const char *, unsigned char *); + /** Reads the refs file specified into sha1 **/ extern int get_ref_sha1(const char *ref, unsigned char *sha1); |