summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-15 23:43:23 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-15 23:43:23 -0700
commit3aece89fa24ff38afc9f5a30bc4f8f15e91f4cd7 (patch)
treef0b8ac7481d6a6621ec0334cba6943db2a417e39 /refs.h
parentMerge branch 'se/diff' (diff)
parentAdd "--branches", "--tags" and "--remotes" options to git-rev-parse. (diff)
downloadtgif-3aece89fa24ff38afc9f5a30bc4f8f15e91f4cd7.tar.xz
Merge branch 'se/rev-parse'
* se/rev-parse: Add "--branches", "--tags" and "--remotes" options to git-rev-parse.
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index 2625596701..fa816c1e9f 100644
--- a/refs.h
+++ b/refs.h
@@ -7,6 +7,9 @@
*/
extern int head_ref(int (*fn)(const char *path, const unsigned char *sha1));
extern int for_each_ref(int (*fn)(const char *path, const unsigned char *sha1));
+extern int for_each_tag_ref(int (*fn)(const char *path, const unsigned char *sha1));
+extern int for_each_branch_ref(int (*fn)(const char *path, const unsigned char *sha1));
+extern int for_each_remote_ref(int (*fn)(const char *path, const unsigned char *sha1));
/** Reads the refs file specified into sha1 **/
extern int get_ref_sha1(const char *ref, unsigned char *sha1);