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

Function revertOptionsFromC

revert.go:29–35  ·  view source on GitHub ↗
(copts *C.git_revert_options)

Source from the content-addressed store, hash-verified

27}
28
29func revertOptionsFromC(copts *C.git_revert_options) RevertOptions {
30 return RevertOptions{
31 Mainline: uint(copts.mainline),
32 MergeOptions: mergeOptionsFromC(&copts.merge_opts),
33 CheckoutOptions: checkoutOptionsFromC(&copts.checkout_opts),
34 }
35}
36
37func freeRevertOptions(copts *C.git_revert_options) {
38 if copts != nil {

Callers 1

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