MCPcopy Create free account
hub / github.com/libgit2/git2go / populateSubmoduleUpdateOptions

Function populateSubmoduleUpdateOptions

submodule.go:387–397  ·  view source on GitHub ↗
(copts *C.git_submodule_update_options, opts *SubmoduleUpdateOptions, errorTarget *error)

Source from the content-addressed store, hash-verified

385}
386
387func 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
399func freeSubmoduleUpdateOptions(copts *C.git_submodule_update_options) {
400 if copts == nil {

Callers 1

UpdateMethod · 0.85

Calls 2

populateCheckoutOptionsFunction · 0.85
populateFetchOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…