From b78bde3d74b1617d5b635723552aaec0583eb054 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Fri, 4 Dec 2020 19:54:26 -0800 Subject: Make all Options objects consistent This change makes all Options objects have child Option fields as values (instead of pointers) to mirror the libgit2 interface. It also names them Options instead of Opts to match the current libgit2 nomenclature and removes the Version fields. --- submodule.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'submodule.go') diff --git a/submodule.go b/submodule.go index 0fdaa12..34d5031 100644 --- a/submodule.go +++ b/submodule.go @@ -14,8 +14,8 @@ import ( // SubmoduleUpdateOptions type SubmoduleUpdateOptions struct { - *CheckoutOpts - *FetchOptions + CheckoutOptions CheckoutOptions + FetchOptions FetchOptions } // Submodule @@ -390,8 +390,8 @@ func populateSubmoduleUpdateOptions(copts *C.git_submodule_update_options, opts return nil } - populateCheckoutOptions(&copts.checkout_opts, opts.CheckoutOpts, errorTarget) - populateFetchOptions(&copts.fetch_opts, opts.FetchOptions, errorTarget) + populateCheckoutOptions(&copts.checkout_opts, &opts.CheckoutOptions, errorTarget) + populateFetchOptions(&copts.fetch_opts, &opts.FetchOptions, errorTarget) return copts } -- cgit v1.2.3