Remote: remove Get prefix from refspecs
Idiomatic Go is to omit the Get from the getter methods.
diff --git a/remote.go b/remote.go
index 3e01ce1..d556f99 100644
--- a/remote.go
+++ b/remote.go
@@ -316,7 +316,7 @@
C.free(unsafe.Pointer(arr.strings))
}
-func (o *Remote) GetFetchRefspecs() ([]string, error) {
+func (o *Remote) FetchRefspecs() ([]string, error) {
crefspecs := C.git_strarray{}
runtime.LockOSThread()
@@ -362,7 +362,7 @@
return nil
}
-func (o *Remote) GetPushRefspecs() ([]string, error) {
+func (o *Remote) PushRefspecs() ([]string, error) {
crefspecs := C.git_strarray{}
runtime.LockOSThread()
diff --git a/remote_test.go b/remote_test.go
index 16675fc..04b3a57 100644
--- a/remote_test.go
+++ b/remote_test.go
@@ -20,7 +20,7 @@
err = remote.SetFetchRefspecs(expected)
checkFatal(t, err)
- actual, err := remote.GetFetchRefspecs()
+ actual, err := remote.FetchRefspecs()
checkFatal(t, err)
compareStringList(t, expected, actual)