summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2016-02-09 06:03:27 +0100
committerCarlos Martín Nieto <[email protected]>2016-02-09 06:03:27 +0100
commitae1de83894f0545416e848cb7dea708870d9f3b4 (patch)
tree9b1bf45df99d4cfe480e065051a98f094050625a
parent4a7794664e4fdce07f978f48aec9d151045bceae (diff)
parentb876e836fa76747b34832f42c354934854601f7d (diff)
Merge pull request #292 from orivej/git_revwalk_simplify_first_parent
Add RevWalk.SimplifyFirstParent()
-rw-r--r--walk.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/walk.go b/walk.go
index c314f60..60e618d 100644
--- a/walk.go
+++ b/walk.go
@@ -194,6 +194,10 @@ func (v *RevWalk) Iterate(fun RevWalkIterator) (err error) {
return nil
}
+func (v *RevWalk) SimplifyFirstParent() {
+ C.git_revwalk_simplify_first_parent(v.ptr)
+}
+
func (v *RevWalk) Sorting(sm SortType) {
C.git_revwalk_sorting(v.ptr, C.uint(sm))
}