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

Function freeDiffOptions

diff.go:677–687  ·  view source on GitHub ↗
(copts *C.git_diff_options)

Source from the content-addressed store, hash-verified

675}
676
677func freeDiffOptions(copts *C.git_diff_options) {
678 if copts == nil {
679 return
680 }
681 freeStrarray(&copts.pathspec)
682 C.free(unsafe.Pointer(copts.old_prefix))
683 C.free(unsafe.Pointer(copts.new_prefix))
684 if copts.payload != nil {
685 pointerHandles.Untrack(copts.payload)
686 }
687}
688
689func (v *Repository) DiffTreeToTree(oldTree, newTree *Tree, opts *DiffOptions) (*Diff, error) {
690 var diffPtr *C.git_diff

Callers 7

PatchFromBuffersMethod · 0.85
DiffTreeToTreeMethod · 0.85
DiffTreeToWorkdirMethod · 0.85
DiffTreeToIndexMethod · 0.85
DiffIndexToWorkdirMethod · 0.85
DiffBlobsFunction · 0.85

Calls 3

freeStrarrayFunction · 0.85
freeMethod · 0.80
UntrackMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…