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

Function populateRevertOptions

revert.go:18–27  ·  view source on GitHub ↗
(copts *C.git_revert_options, opts *RevertOptions, errorTarget *error)

Source from the content-addressed store, hash-verified

16}
17
18func populateRevertOptions(copts *C.git_revert_options, opts *RevertOptions, errorTarget *error) *C.git_revert_options {
19 C.git_revert_options_init(copts, C.GIT_REVERT_OPTIONS_VERSION)
20 if opts == nil {
21 return nil
22 }
23 copts.mainline = C.uint(opts.Mainline)
24 populateMergeOptions(&copts.merge_opts, &opts.MergeOptions)
25 populateCheckoutOptions(&copts.checkout_opts, &opts.CheckoutOptions, errorTarget)
26 return copts
27}
28
29func revertOptionsFromC(copts *C.git_revert_options) RevertOptions {
30 return RevertOptions{

Callers 1

RevertMethod · 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…