Commit 891b0277 by Carlos Martín Nieto

refs: document _next_name()

If it's not documented, it doesn't show up in the docs (and we really
should document, anyway).
parent 892778ee
...@@ -525,6 +525,17 @@ GIT_EXTERN(int) git_reference_iterator_glob_new( ...@@ -525,6 +525,17 @@ GIT_EXTERN(int) git_reference_iterator_glob_new(
*/ */
GIT_EXTERN(int) git_reference_next(git_reference **out, git_reference_iterator *iter); GIT_EXTERN(int) git_reference_next(git_reference **out, git_reference_iterator *iter);
/**
* Get the next reference's name
*
* This function is provided for convenience in case only the names
* are interesting as it avoids the allocation of the `git_reference`
* object which `git_reference_next()` needs.
*
* @param out pointer in which to store the string
* @param iter the iterator
* @return 0, GIT_ITEROVER if there are no more; or an error code
*/
GIT_EXTERN(int) git_reference_next_name(const char **out, git_reference_iterator *iter); GIT_EXTERN(int) git_reference_next_name(const char **out, git_reference_iterator *iter);
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment