diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-03-20 03:29:54 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-03-20 03:29:54 +0100 |
| commit | 574f0dd12da2eae6f26ae35f197b2ec7a9328249 (patch) | |
| tree | b572512f36068755df8617c4ecdd38c41259ada0 /remote.go | |
| parent | 3ae9813fca2837601e5a7c801972396a59e1eb59 (diff) | |
Remote: remove Get prefix from refspecs
Idiomatic Go is to omit the Get from the getter methods.
Diffstat (limited to 'remote.go')
| -rw-r--r-- | remote.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -316,7 +316,7 @@ func freeStrarray(arr *C.git_strarray) { 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 @@ func (o *Remote) AddPush(refspec string) error { return nil } -func (o *Remote) GetPushRefspecs() ([]string, error) { +func (o *Remote) PushRefspecs() ([]string, error) { crefspecs := C.git_strarray{} runtime.LockOSThread() |
