summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron O'Mullan <[email protected]>2015-02-12 18:49:54 +0100
committerAaron O'Mullan <[email protected]>2015-02-12 18:49:54 +0100
commitdddcbb71c45932feef3c2d0fe6fbdf375b0de644 (patch)
treecef9fc901fcf2eb265e33cceee992ebc7d417e50
parentc10445cd67d400b1a58ccd6ad07f63b4612f8b11 (diff)
Remove "Graph" prefix on method names
-rw-r--r--graph.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/graph.go b/graph.go
index f7cf8e9..e5d7732 100644
--- a/graph.go
+++ b/graph.go
@@ -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()