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

Function cherrypickOptionsFromC

cherrypick.go:17–24  ·  view source on GitHub ↗
(c *C.git_cherrypick_options)

Source from the content-addressed store, hash-verified

15}
16
17func cherrypickOptionsFromC(c *C.git_cherrypick_options) CherrypickOptions {
18 opts := CherrypickOptions{
19 Mainline: uint(c.mainline),
20 MergeOptions: mergeOptionsFromC(&c.merge_opts),
21 CheckoutOptions: checkoutOptionsFromC(&c.checkout_opts),
22 }
23 return opts
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)

Callers 1

DefaultCherrypickOptionsFunction · 0.85

Calls 2

mergeOptionsFromCFunction · 0.85
checkoutOptionsFromCFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…