summaryrefslogtreecommitdiff
path: root/diff.go
diff options
context:
space:
mode:
authorSuhaib Mujahid <[email protected]>2020-10-22 09:18:11 -0400
committerGitHub <[email protected]>2020-10-22 06:18:11 -0700
commit5b6ce70b8997254ce48f8c24ba4198080e646fdd (patch)
treee9403a758fbf4a642fafaf22477525458162ef1b /diff.go
parent37b81b61f16f4bdf891a54dc8311bd5d2236e329 (diff)
refactor: Use undeprecated options init (#656)
This PR move form linking against the deprecated `init_options` functions to the renamed `options_init` functions. For more context see libgit2/libgit2@0b5ba0d744e69da5dc8c08d167c83dd87ed83af2 and libgit2/libgit2@c6184f0c4b209e462bf3f42ab20df2d13d8ee918.
Diffstat (limited to 'diff.go')
-rw-r--r--diff.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/diff.go b/diff.go
index 9d17dd7..f65a2dd 100644
--- a/diff.go
+++ b/diff.go
@@ -512,7 +512,7 @@ func DefaultDiffOptions() (DiffOptions, error) {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
- ecode := C.git_diff_init_options(&opts, C.GIT_DIFF_OPTIONS_VERSION)
+ ecode := C.git_diff_options_init(&opts, C.GIT_DIFF_OPTIONS_VERSION)
if ecode < 0 {
return DiffOptions{}, MakeGitError(ecode)
}
@@ -567,7 +567,7 @@ func DefaultDiffFindOptions() (DiffFindOptions, error) {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
- ecode := C.git_diff_find_init_options(&opts, C.GIT_DIFF_FIND_OPTIONS_VERSION)
+ ecode := C.git_diff_find_options_init(&opts, C.GIT_DIFF_FIND_OPTIONS_VERSION)
if ecode < 0 {
return DiffFindOptions{}, MakeGitError(ecode)
}