vendor/libgit2/include/git2/revwalk.h in rugged-1.3.2.3 vs vendor/libgit2/include/git2/revwalk.h in rugged-1.4.2

- old
+ new

@@ -47,11 +47,11 @@ /** * Iterate through the repository contents in reverse * order; this sorting mode can be combined with * any of the above. */ - GIT_SORT_REVERSE = 1 << 2, + GIT_SORT_REVERSE = 1 << 2 } git_sort_t; /** * Allocate a new revision walker to iterate through a repo. * @@ -247,10 +247,11 @@ /** * Simplify the history by first-parent * * No parents other than the first for each commit will be enqueued. * + * @param walk The revision walker. * @return 0 or an error code */ GIT_EXTERN(int) git_revwalk_simplify_first_parent(git_revwalk *walk); @@ -275,10 +276,11 @@ * commit and its parents. If the callback function returns non-zero value, * then this commit and its parents will be hidden. * * @param commit_id oid of Commit * @param payload User-specified pointer to data to be passed as data payload + * @return non-zero to hide the commmit and it parent. */ typedef int GIT_CALLBACK(git_revwalk_hide_cb)( const git_oid *commit_id, void *payload); @@ -286,9 +288,10 @@ * Adds, changes or removes a callback function to hide a commit and its parents * * @param walk the revision walker * @param hide_cb callback function to hide a commit and its parents * @param payload data payload to be passed to callback function + * @return 0 or an error code. */ GIT_EXTERN(int) git_revwalk_add_hide_cb( git_revwalk *walk, git_revwalk_hide_cb hide_cb, void *payload);