()
| 28 | } |
| 29 | |
| 30 | func (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 | |
| 40 | func (patch *Patch) String() (string, error) { |
| 41 | if patch.ptr == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected