diff options
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/revwalk.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/git2/revwalk.h b/include/git2/revwalk.h index 020c898c..e7ec2abf 100644 --- a/include/git2/revwalk.h +++ b/include/git2/revwalk.h @@ -117,6 +117,14 @@ GIT_EXTERN(int) git_revwalk_push(git_revwalk *walk, const git_oid *oid); GIT_EXTERN(int) git_revwalk_push_glob(git_revwalk *walk, const char *glob); /** + * Push the repository's HEAD + * + * @param walk the walker being used for the traversal + * @return GIT_SUCCESS or an error code + */ +GIT_EXTERN(int) git_revwalk_push_head(git_revwalk *walk); + +/** * Mark a commit (and its ancestors) uninteresting for the output. * * The given OID must belong to a commit on the walked @@ -148,6 +156,14 @@ GIT_EXTERN(int) git_revwalk_hide(git_revwalk *walk, const git_oid *oid); GIT_EXTERN(int) git_revwalk_hide_glob(git_revwalk *walk, const char *glob); /** + * Hide the repository's HEAD + * + * @param walk the walker being used for the traversal + * @return GIT_SUCCESS or an error code + */ +GIT_EXTERN(int) git_revwalk_hide_head(git_revwalk *walk); + +/** * Get the next commit from the revision walk. * * The initial call to this method is *not* blocking when |
