()
| 954 | } |
| 955 | |
| 956 | func (o *Remote) PushRefspecs() ([]string, error) { |
| 957 | crefspecs := C.git_strarray{} |
| 958 | |
| 959 | runtime.LockOSThread() |
| 960 | defer runtime.UnlockOSThread() |
| 961 | |
| 962 | ret := C.git_remote_get_push_refspecs(&crefspecs, o.ptr) |
| 963 | if ret < 0 { |
| 964 | return nil, MakeGitError(ret) |
| 965 | } |
| 966 | defer C.git_strarray_dispose(&crefspecs) |
| 967 | runtime.KeepAlive(o) |
| 968 | |
| 969 | refspecs := makeStringsFromCStrings(crefspecs.strings, int(crefspecs.count)) |
| 970 | return refspecs, nil |
| 971 | } |
| 972 | |
| 973 | func (o *Remote) RefspecCount() uint { |
| 974 | count := C.git_remote_refspec_count(o.ptr) |
nothing calls this directly
no test coverage detected