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

Function rebaseOptionsFromC

rebase.go:226–234  ·  view source on GitHub ↗
(opts *C.git_rebase_options)

Source from the content-addressed store, hash-verified

224}
225
226func rebaseOptionsFromC(opts *C.git_rebase_options) RebaseOptions {
227 return RebaseOptions{
228 Quiet: int(opts.quiet),
229 InMemory: int(opts.inmemory),
230 RewriteNotesRef: C.GoString(opts.rewrite_notes_ref),
231 MergeOptions: mergeOptionsFromC(&opts.merge_options),
232 CheckoutOptions: checkoutOptionsFromC(&opts.checkout_options),
233 }
234}
235
236func populateRebaseOptions(copts *C.git_rebase_options, opts *RebaseOptions, repo *Repository, errorTarget *error) *C.git_rebase_options {
237 C.git_rebase_options_init(copts, C.GIT_REBASE_OPTIONS_VERSION)

Callers 1

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