diff options
| author | lhchavez <[email protected]> | 2020-12-04 19:54:26 -0800 |
|---|---|---|
| committer | lhchavez <[email protected]> | 2021-09-05 18:52:01 -0700 |
| commit | b78bde3d74b1617d5b635723552aaec0583eb054 (patch) | |
| tree | 16c98859171b6483b61ac710672694d823db2e1b /submodule.go | |
| parent | 5def02a589a2c1653f4bb515fdec290361a222be (diff) | |
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.
Diffstat (limited to 'submodule.go')
| -rw-r--r-- | submodule.go | 8 |
1 files changed, 4 insertions, 4 deletions
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 } |
