(name string)
| 708 | } |
| 709 | |
| 710 | func (c *RemoteCollection) Delete(name string) error { |
| 711 | cname := C.CString(name) |
| 712 | defer C.free(unsafe.Pointer(cname)) |
| 713 | |
| 714 | runtime.LockOSThread() |
| 715 | defer runtime.UnlockOSThread() |
| 716 | |
| 717 | ret := C.git_remote_delete(c.repo.ptr, cname) |
| 718 | runtime.KeepAlive(c.repo) |
| 719 | if ret < 0 { |
| 720 | return MakeGitError(ret) |
| 721 | } |
| 722 | return nil |
| 723 | } |
| 724 | |
| 725 | func (c *RemoteCollection) CreateWithFetchspec(name string, url string, fetch string) (*Remote, error) { |
| 726 | remote := &Remote{repo: c.repo} |
nothing calls this directly
no test coverage detected