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

Method Free

note.go:155–163  ·  view source on GitHub ↗

Free frees a git_note object

()

Source from the content-addressed store, hash-verified

153
154// Free frees a git_note object
155func (n *Note) Free() error {
156 if n.ptr == nil {
157 return ErrInvalid
158 }
159 runtime.SetFinalizer(n, nil)
160 C.git_note_free(n.ptr)
161 n.ptr = nil
162 return nil
163}
164
165// Author returns the signature of the note author
166func (n *Note) Author() *Signature {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected