summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-09-08 00:52:26 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-09-09 20:31:14 +0200
commit15f7b9b8d9bdfb68ca52d582be40cf6112464e77 (patch)
tree5f2654223d4e34d04e3630c0ee95fc02a8d6db4e /include
parentef6389ad504037e7a4311adbf14f1fa5a5aa4190 (diff)
downloadlibgit2-15f7b9b8d9bdfb68ca52d582be40cf6112464e77.tar.gz
revwalk: allow simplifying by first-parent
When enabled, only the first parent of each commit will be queued, enabling a simple way of using first-parent simplification.
Diffstat (limited to 'include')
-rw-r--r--include/git2/revwalk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/revwalk.h b/include/git2/revwalk.h
index 8bfe0b502..c59b79938 100644
--- a/include/git2/revwalk.h
+++ b/include/git2/revwalk.h
@@ -232,6 +232,14 @@ GIT_EXTERN(void) git_revwalk_sorting(git_revwalk *walk, unsigned int sort_mode);
GIT_EXTERN(int) git_revwalk_push_range(git_revwalk *walk, const char *range);
/**
+ * Simplify the history by first-parent
+ *
+ * No parents other than the first for each commit will be enqueued.
+ */
+GIT_EXTERN(void) git_revwalk_simplify_first_parent(git_revwalk *walk);
+
+
+/**
* Free a revision walker previously allocated.
*
* @param walk traversal handle to close. If NULL nothing occurs.