func (o *Remote) Prune() error { runtime.LockOSThread() defer runtime.UnlockOSThread() ret := C.git_remote_prune(o.ptr) if ret < 0 { return MakeGitError(ret) } return nil }
func (o *Remote) Prune(callbacks *RemoteCallbacks) error { var ccallbacks C.git_remote_callbacks populateRemoteCallbacks(&ccallbacks, callbacks) runtime.LockOSThread() defer runtime.UnlockOSThread() ret := C.git_remote_prune(o.ptr, &ccallbacks) if ret < 0 { return MakeGitError(ret) } return nil }