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

Method Free

remote.go:780–792  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

778}
779
780func (c *RemoteCollection) Free() {
781 var remotes []*Remote
782 c.Lock()
783 for remotePtr, remote := range c.remotes {
784 remotes = append(remotes, remote)
785 delete(c.remotes, remotePtr)
786 }
787 c.Unlock()
788
789 for _, remote := range remotes {
790 remotePointers.untrack(remote)
791 }
792}
793
794func (o *Remote) Name() string {
795 s := C.git_remote_name(o.ptr)

Callers

nothing calls this directly

Calls 1

untrackMethod · 0.80

Tested by

no test coverage detected