summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-19 13:22:44 -0800
committerJunio C Hamano <junkio@cox.net>2006-11-19 18:45:44 -0800
commitcf0adba7885342e1bbcf0689fece9d13e39784b4 (patch)
treec6559d40439c8e28fb0634292738e00693deb88e /refs.h
parentef06b91804ff5a626e265c6d9080bbc0e7924e88 (diff)
downloadgit-cf0adba7885342e1bbcf0689fece9d13e39784b4.tar.gz
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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index a57d43726a..40048a6919 100644
--- a/refs.h
+++ b/refs.h
@@ -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);