From 5817a8f70370c0d41950fb2e7516389866da89b7 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Sat, 25 Jun 2016 22:49:35 +0100 Subject: Add cgit_for_each_namespaced_ref_in helper libgit has a for_each_namespaced_ref, but lacks equivalents for just branches, tags or remotes. Rather than implementing all of those helpers, it's more convenient to implement just one that prepends the namespace to the provided ref base. Signed-off-by: Richard Maw --- cgit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 93de0ea..f0d25d6 100644 --- a/cgit.h +++ b/cgit.h @@ -394,4 +394,6 @@ extern char *get_mimetype_for_filename(const char *filename); extern int cgit_get_sha1(const char *name, unsigned char *sha1); +extern int cgit_for_each_namespaced_ref_in(const char *prefix, each_ref_fn fn, void *cb_data); + #endif /* CGIT_H */ -- cgit v1.2.3-59-g8ed1b