summaryrefslogtreecommitdiff
path: root/src/git2/revwalk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/git2/revwalk.h')
-rw-r--r--src/git2/revwalk.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/git2/revwalk.h b/src/git2/revwalk.h
index 960039a39..841110499 100644
--- a/src/git2/revwalk.h
+++ b/src/git2/revwalk.h
@@ -99,10 +99,13 @@ GIT_EXTERN(int) git_revwalk_hide(git_revwalk *walk, git_commit *commit);
/**
* Get the next commit from the revision traversal.
+ *
+ * @param commit Pointer where to store the next commit
* @param walk the walker to pop the commit from.
- * @return next commit; NULL if there is no more output.
+ * @return GIT_SUCCESS if the next commit was found;
+ * GIT_EREVWALKOVER if there are no commits left to iterate
*/
-GIT_EXTERN(git_commit *) git_revwalk_next(git_revwalk *walk);
+GIT_EXTERN(int) git_revwalk_next(git_commit **commit, git_revwalk *walk);
/**
* Change the sorting mode when iterating through the