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

Method Free

diff.go:227–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225}
226
227func (stats *DiffStats) Free() error {
228 if stats.ptr == nil {
229 return ErrInvalid
230 }
231 runtime.SetFinalizer(stats, nil)
232 C.git_diff_stats_free(stats.ptr)
233 stats.ptr = nil
234 return nil
235}
236
237func (stats *DiffStats) Insertions() int {
238 ret := int(C.git_diff_stats_insertions(stats.ptr))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected