(copts *C.git_diff_options)
| 675 | } |
| 676 | |
| 677 | func 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 | |
| 689 | func (v *Repository) DiffTreeToTree(oldTree, newTree *Tree, opts *DiffOptions) (*Diff, error) { |
| 690 | var diffPtr *C.git_diff |
no test coverage detected
searching dependent graphs…