summaryrefslogtreecommitdiff
path: root/diff.go
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <[email protected]>2016-02-16 17:22:43 +0100
committerHan-Wen Nienhuys <[email protected]>2016-02-17 18:23:52 +0100
commitaa59dccea724221f99ea57a8f803101b786809ef (patch)
tree0cefad99e91c7adb13df2bf671ddaba269e70f99 /diff.go
parent6d6736b2bd4e23a68fa5e0703ab9cf20f3f32af3 (diff)
Upgrade to libgit2 to 0f9d15493d5d8ad4353dd7beed52c9567334f6e5
Diffstat (limited to 'diff.go')
-rw-r--r--diff.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/diff.go b/diff.go
index de56374..565fcee 100644
--- a/diff.go
+++ b/diff.go
@@ -550,7 +550,7 @@ func diffOptionsToC(opts *DiffOptions) (copts *C.git_diff_options, notifyData *d
if opts.NotifyCallback != nil {
C._go_git_setup_diff_notify_callbacks(copts)
- copts.notify_payload = pointerHandles.Track(notifyData)
+ copts.payload = pointerHandles.Track(notifyData)
}
}
return
@@ -562,8 +562,8 @@ func freeDiffOptions(copts *C.git_diff_options) {
freeStrarray(&cpathspec)
C.free(unsafe.Pointer(copts.old_prefix))
C.free(unsafe.Pointer(copts.new_prefix))
- if copts.notify_payload != nil {
- pointerHandles.Untrack(copts.notify_payload)
+ if copts.payload != nil {
+ pointerHandles.Untrack(copts.payload)
}
}
}