Add RevWalk.SimplifyFirstParent() #292

Merged
orivej merged 1 commits from git_revwalk_simplify_first_parent into master 2016-02-08 23:03:27 -06:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit b876e836fa - Show all commits

View File

@ -194,6 +194,10 @@ func (v *RevWalk) Iterate(fun RevWalkIterator) (err error) {
return nil return nil
} }
func (v *RevWalk) SimplifyFirstParent() {
C.git_revwalk_simplify_first_parent(v.ptr)
}
func (v *RevWalk) Sorting(sm SortType) { func (v *RevWalk) Sorting(sm SortType) {
C.git_revwalk_sorting(v.ptr, C.uint(sm)) C.git_revwalk_sorting(v.ptr, C.uint(sm))
} }