diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-05-21 18:51:50 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-05-21 18:51:50 +0400 |
commit | fc74343ff45187528e674712f7e858b95718edd6 (patch) | |
tree | 5140f7006e084a26c470d57124b858ca3f4d9997 | |
parent | 60750fc43e761b57ade6373f3ede14c5187814dc (diff) |
refs: export the glob iterator
-rw-r--r-- | include/git2/refs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h index 754bda785..fa9958369 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 |