Free frees a git_note object
()
| 153 | |
| 154 | // Free frees a git_note object |
| 155 | func (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 |
| 166 | func (n *Note) Author() *Signature { |
nothing calls this directly
no outgoing calls
no test coverage detected