aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-08-23 19:36:55 +0700
committerJunio C Hamano <gitster@pobox.com>2017-08-24 14:47:31 -0700
commit62f0b399e00f38751834e688677ab49fcccd28fe (patch)
tree414855e81317cc367d0e6edc5bb066835af5b6ff /refs.h
parent29babbeeb32fb4e8b892940e69207ec7de2e7a63 (diff)
downloadgit-62f0b399e00f38751834e688677ab49fcccd28fe.tar.gz
git-62f0b399e00f38751834e688677ab49fcccd28fe.tar.xz
refs: add refs_head_ref()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index 6daa78eb5..8073f8ab5 100644
--- a/refs.h
+++ b/refs.h
@@ -275,6 +275,8 @@ typedef int each_ref_fn(const char *refname,
* modifies the reference also returns a nonzero value to immediately
* stop the iteration. Returned references are sorted.
*/
+int refs_head_ref(struct ref_store *refs,
+ each_ref_fn fn, void *cb_data);
int refs_for_each_ref(struct ref_store *refs,
each_ref_fn fn, void *cb_data);
int refs_for_each_ref_in(struct ref_store *refs, const char *prefix,