diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-03-11 03:14:36 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-03-11 03:14:36 +0100 |
| commit | b5b0f3f50e151ef67f8cd7b10044c81920093a81 (patch) | |
| tree | e95aed880ecc9133a5d8e4e19dd55273055e5b25 /checkout.go | |
| parent | 42fce02197789a1577ff7130f7f46ce47e584aca (diff) | |
Remove custom checkout opts init function
Diffstat (limited to 'checkout.go')
| -rw-r--r-- | checkout.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/checkout.go b/checkout.go index 5becd0e..0f112a7 100644 --- a/checkout.go +++ b/checkout.go @@ -2,10 +2,6 @@ package git /* #include <git2.h> -git_checkout_options git_checkout_opts_init() { - git_checkout_options ret = GIT_CHECKOUT_OPTIONS_INIT; - return ret; -} */ import "C" import ( @@ -44,7 +40,7 @@ type CheckoutOpts struct { // Convert the CheckoutOpts struct to the corresponding C-struct func populateCheckoutOpts(ptr *C.git_checkout_options, opts *CheckoutOpts) { - *ptr = C.git_checkout_opts_init() + C.git_checkout_init_opts(ptr, 1) if opts == nil { return } |
