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

Method Free

repository.go:144–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142}
143
144func (v *Repository) Free() {
145 ptr := v.ptr
146 v.ptr = nil
147 runtime.SetFinalizer(v, nil)
148 v.Remotes.Free()
149 if v.weak {
150 return
151 }
152 C.git_repository_free(ptr)
153}
154
155func (v *Repository) Config() (*Config, error) {
156 config := new(Config)

Callers

nothing calls this directly

Calls 1

FreeMethod · 0.65

Tested by

no test coverage detected