Remove "Graph" prefix on method names
This commit is contained in:
parent
c10445cd67
commit
dddcbb71c4
4
graph.go
4
graph.go
|
@ -8,7 +8,7 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (repo *Repository) GraphDescendantOf(commit, ancestor *Oid) (bool, error) {
|
func (repo *Repository) DescendantOf(commit, ancestor *Oid) (bool, error) {
|
||||||
runtime.LockOSThread()
|
runtime.LockOSThread()
|
||||||
defer runtime.UnlockOSThread()
|
defer runtime.UnlockOSThread()
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ func (repo *Repository) GraphDescendantOf(commit, ancestor *Oid) (bool, error) {
|
||||||
return (ret > 0), nil
|
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()
|
runtime.LockOSThread()
|
||||||
defer runtime.UnlockOSThread()
|
defer runtime.UnlockOSThread()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue