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

Function populateCherrypickOptions

cherrypick.go:26–35  ·  view source on GitHub ↗
(copts *C.git_cherrypick_options, opts *CherrypickOptions, errorTarget *error)

Source from the content-addressed store, hash-verified

24}
25
26func populateCherrypickOptions(copts *C.git_cherrypick_options, opts *CherrypickOptions, errorTarget *error) *C.git_cherrypick_options {
27 C.git_cherrypick_options_init(copts, C.GIT_CHERRYPICK_OPTIONS_VERSION)
28 if opts == nil {
29 return nil
30 }
31 copts.mainline = C.uint(opts.Mainline)
32 populateMergeOptions(&copts.merge_opts, &opts.MergeOptions)
33 populateCheckoutOptions(&copts.checkout_opts, &opts.CheckoutOptions, errorTarget)
34 return copts
35}
36
37func freeCherrypickOpts(copts *C.git_cherrypick_options) {
38 if copts == nil {

Callers 1

CherrypickMethod · 0.85

Calls 2

populateMergeOptionsFunction · 0.85
populateCheckoutOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…