Add bindings for git_graph_* methods #173

Merged
AaronO merged 2 commits from add/graph-methods into master 2015-02-13 01:45:14 -06:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit dddcbb71c4 - Show all commits

View File

@ -8,7 +8,7 @@ import (
"runtime"
)
func (repo *Repository) GraphDescendantOf(commit, ancestor *Oid) (bool, error) {
func (repo *Repository) DescendantOf(commit, ancestor *Oid) (bool, error) {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
@ -20,7 +20,7 @@ func (repo *Repository) GraphDescendantOf(commit, ancestor *Oid) (bool, error) {
return (ret > 0), nil
}
func (repo *Repository) GraphAheadBehind(local, upstream *Oid) (ahead, behind int, err error) {
func (repo *Repository) AheadBehind(local, upstream *Oid) (ahead, behind int, err error) {
runtime.LockOSThread()
defer runtime.UnlockOSThread()