From 5b6ce70b8997254ce48f8c24ba4198080e646fdd Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Thu, 22 Oct 2020 09:18:11 -0400 Subject: 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. --- describe.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'describe.go') diff --git a/describe.go b/describe.go index f7036df..da233d9 100644 --- a/describe.go +++ b/describe.go @@ -43,7 +43,7 @@ func DefaultDescribeOptions() (DescribeOptions, error) { defer runtime.UnlockOSThread() opts := C.git_describe_options{} - ecode := C.git_describe_init_options(&opts, C.GIT_DESCRIBE_OPTIONS_VERSION) + ecode := C.git_describe_options_init(&opts, C.GIT_DESCRIBE_OPTIONS_VERSION) if ecode < 0 { return DescribeOptions{}, MakeGitError(ecode) } @@ -77,7 +77,7 @@ func DefaultDescribeFormatOptions() (DescribeFormatOptions, error) { defer runtime.UnlockOSThread() opts := C.git_describe_format_options{} - ecode := C.git_describe_init_format_options(&opts, C.GIT_DESCRIBE_FORMAT_OPTIONS_VERSION) + ecode := C.git_describe_format_options_init(&opts, C.GIT_DESCRIBE_FORMAT_OPTIONS_VERSION) if ecode < 0 { return DescribeFormatOptions{}, MakeGitError(ecode) } -- cgit v1.2.3