diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-05-28 20:47:55 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-05-28 20:47:55 +0200 |
commit | 56960b8396d3aef0b39f32aa7a9749202f925ada (patch) | |
tree | 90148977efa5b5dd715ddc4e474732737320314e /include | |
parent | 2638a03affdf57c989f573d48afca3b849cb4c1f (diff) | |
download | libgit2-56960b8396d3aef0b39f32aa7a9749202f925ada.tar.gz |
Liike this
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/refs.h | 15 | ||||
-rw-r--r-- | include/git2/sys/refdb_backend.h | 2 |
2 files changed, 11 insertions, 6 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h index 468d0f930..4d9ec8344 100644 --- a/include/git2/refs.h +++ b/include/git2/refs.h @@ -351,7 +351,9 @@ GIT_EXTERN(int) git_reference_cmp(git_reference *ref1, git_reference *ref2); * @param repo the repository * @return 0 or an error code */ -GIT_EXTERN(int) git_reference_iterator_new(git_reference_iterator **out, git_repository *repo); +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 @@ -362,16 +364,19 @@ GIT_EXTERN(int) git_reference_iterator_new(git_reference_iterator **out, git_rep * @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); +GIT_EXTERN(int) git_reference_iterator_glob_new( + git_reference_iterator **out, + git_repository *repo, + const char *glob); /** - * Get the next reference name + * Get the next reference * - * @param out pointer in which to store the string + * @param out pointer in which to store the reference * @param iter the iterator * @param 0, GIT_ITEROVER if there are no more; or an error code */ -GIT_EXTERN(int) git_reference_next(const char **out, git_reference_iterator *iter); +GIT_EXTERN(int) git_reference_next(git_reference **out, git_reference_iterator *iter); /** * Free the iterator and its associated resources diff --git a/include/git2/sys/refdb_backend.h b/include/git2/sys/refdb_backend.h index 548597fbc..0820cd9c5 100644 --- a/include/git2/sys/refdb_backend.h +++ b/include/git2/sys/refdb_backend.h @@ -85,7 +85,7 @@ struct git_refdb_backend { * A refdb implementation must provide this function. */ int (*next)( - const char **name, + git_reference **ref, git_reference_iterator *iter); /** |