Remove "Graph" prefix on method names

This commit is contained in:
Aaron O'Mullan 2015-02-12 18:49:54 +01:00
parent c10445cd67
commit dddcbb71c4
1 changed files with 2 additions and 2 deletions

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()