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

Method Free

patch.go:30–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (patch *Patch) Free() error {
31 if patch.ptr == nil {
32 return ErrInvalid
33 }
34 runtime.SetFinalizer(patch, nil)
35 C.git_patch_free(patch.ptr)
36 patch.ptr = nil
37 return nil
38}
39
40func (patch *Patch) String() (string, error) {
41 if patch.ptr == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected