()
| 178 | } |
| 179 | |
| 180 | func (diff *Diff) Free() error { |
| 181 | if diff.ptr == nil { |
| 182 | return ErrInvalid |
| 183 | } |
| 184 | if !diff.runFinalizer { |
| 185 | // This is the case with the Diff objects that are involved in the DiffNotifyCallback. |
| 186 | diff.ptr = nil |
| 187 | return nil |
| 188 | } |
| 189 | runtime.SetFinalizer(diff, nil) |
| 190 | C.git_diff_free(diff.ptr) |
| 191 | diff.ptr = nil |
| 192 | return nil |
| 193 | } |
| 194 | |
| 195 | func (diff *Diff) FindSimilar(opts *DiffFindOptions) error { |
| 196 |
nothing calls this directly
no outgoing calls
no test coverage detected