Commit fc74343ff45187528e674712f7e858b95718edd6

Carlos Martín Nieto 2013-05-21T16:51:50

refs: export the glob iterator

diff --git a/include/git2/refs.h b/include/git2/refs.h
index 754bda7..fa99583 100644
--- a/include/git2/refs.h
+++ b/include/git2/refs.h
@@ -354,6 +354,17 @@ GIT_EXTERN(int) git_reference_cmp(git_reference *ref1, git_reference *ref2);
 GIT_EXTERN(int) git_reference_iterator_new(git_reference_iterator **out, git_repository *repo);
 
 /**
+ * Create an iterator for the repo's references that match the
+ * specified glob
+ *
+ * @param out pointer in which to store the iterator
+ * @param repo the repository
+ * @param glob the glob to match against the reference names
+ * @return 0 or an error code
+ */
+GIT_EXTERN(int) git_reference_iterator_glob_new(git_reference_iterator **out, git_repository *repo, const char *glob);
+
+/**
  * Get the next reference name
  *
  * @param out pointer in which to store the string