summaryrefslogtreecommitdiff
path: root/walk.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2016-02-15 15:02:19 +0100
committerCarlos Martín Nieto <[email protected]>2016-02-15 15:02:19 +0100
commit6d6736b2bd4e23a68fa5e0703ab9cf20f3f32af3 (patch)
tree5944351daa7480f7e1a89c46b147701a88dfe697 /walk.go
parent6d60e0f2c911b939f2ccae5d3f7d4c554a4d563e (diff)
parent55594814c9009f9d645aea39a9f917cf82666228 (diff)
Merge remote-tracking branch 'upstream/master' into next
Diffstat (limited to 'walk.go')
-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))
}