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

Function newDiffFromC

diff.go:165–178  ·  view source on GitHub ↗
(ptr *C.git_diff, repo *Repository)

Source from the content-addressed store, hash-verified

163}
164
165func newDiffFromC(ptr *C.git_diff, repo *Repository) *Diff {
166 if ptr == nil {
167 return nil
168 }
169
170 diff := &Diff{
171 ptr: ptr,
172 repo: repo,
173 runFinalizer: true,
174 }
175
176 runtime.SetFinalizer(diff, (*Diff).Free)
177 return diff
178}
179
180func (diff *Diff) Free() error {
181 if diff.ptr == nil {

Callers 6

DiffTreeToTreeMethod · 0.85
DiffTreeToWorkdirMethod · 0.85
DiffTreeToIndexMethod · 0.85
DiffIndexToWorkdirMethod · 0.85
DiffFromBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…