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

Method Free

diff.go:180–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178}
179
180func (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
195func (diff *Diff) FindSimilar(opts *DiffFindOptions) error {
196

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected