summaryrefslogtreecommitdiff
path: root/include/git2/revwalk.h
diff options
context:
space:
mode:
authorGreg Price <price@mit.edu>2013-03-03 20:54:23 -0800
committerGreg Price <price@mit.edu>2013-04-06 20:51:16 -0700
commitaf079d8bf69a4bd92d6a4eff3c3d1e4d73190a78 (patch)
treeb4a087d5b3414c2f72836e03e3e5730d9f936e0f /include/git2/revwalk.h
parentb208d9002289dcd8170750cb94c84678afdd6e0c (diff)
downloadlibgit2-af079d8bf69a4bd92d6a4eff3c3d1e4d73190a78.tar.gz
revwalk: Parse revision ranges
All the hard work is already in revparse. Signed-off-by: Greg Price <price@mit.edu>
Diffstat (limited to 'include/git2/revwalk.h')
-rw-r--r--include/git2/revwalk.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/git2/revwalk.h b/include/git2/revwalk.h
index 0af80625e..8bfe0b502 100644
--- a/include/git2/revwalk.h
+++ b/include/git2/revwalk.h
@@ -217,6 +217,21 @@ GIT_EXTERN(int) git_revwalk_next(git_oid *out, git_revwalk *walk);
GIT_EXTERN(void) git_revwalk_sorting(git_revwalk *walk, unsigned int sort_mode);
/**
+ * Push and hide the respective endpoints of the given range.
+ *
+ * The range should be of the form
+ * <commit>..<commit>
+ * where each <commit> is in the form accepted by 'git_revparse_single'.
+ * The left-hand commit will be hidden and the right-hand commit pushed.
+ *
+ * @param walk the walker being used for the traversal
+ * @param range the range
+ * @return 0 or an error code
+ *
+ */
+GIT_EXTERN(int) git_revwalk_push_range(git_revwalk *walk, const char *range);
+
+/**
* Free a revision walker previously allocated.
*
* @param walk traversal handle to close. If NULL nothing occurs.