MCPcopy Create free account
hub / github.com/libgit2/git2go / Delete

Method Delete

remote.go:710–723  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

708}
709
710func (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
725func (c *RemoteCollection) CreateWithFetchspec(name string, url string, fetch string) (*Remote, error) {
726 remote := &Remote{repo: c.repo}

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
freeMethod · 0.80

Tested by

no test coverage detected