(copts *C.git_submodule_update_options, opts *SubmoduleUpdateOptions, errorTarget *error)
| 385 | } |
| 386 | |
| 387 | func populateSubmoduleUpdateOptions(copts *C.git_submodule_update_options, opts *SubmoduleUpdateOptions, errorTarget *error) *C.git_submodule_update_options { |
| 388 | C.git_submodule_update_options_init(copts, C.GIT_SUBMODULE_UPDATE_OPTIONS_VERSION) |
| 389 | if opts == nil { |
| 390 | return nil |
| 391 | } |
| 392 | |
| 393 | populateCheckoutOptions(&copts.checkout_opts, &opts.CheckoutOptions, errorTarget) |
| 394 | populateFetchOptions(&copts.fetch_opts, &opts.FetchOptions, errorTarget) |
| 395 | |
| 396 | return copts |
| 397 | } |
| 398 | |
| 399 | func freeSubmoduleUpdateOptions(copts *C.git_submodule_update_options) { |
| 400 | if copts == nil { |
no test coverage detected
searching dependent graphs…