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

Function DefaultRebaseOptions

rebase.go:213–224  ·  view source on GitHub ↗

DefaultRebaseOptions returns a RebaseOptions with default values.

()

Source from the content-addressed store, hash-verified

211
212// DefaultRebaseOptions returns a RebaseOptions with default values.
213func DefaultRebaseOptions() (RebaseOptions, error) {
214 opts := C.git_rebase_options{}
215
216 runtime.LockOSThread()
217 defer runtime.UnlockOSThread()
218
219 ecode := C.git_rebase_options_init(&opts, C.GIT_REBASE_OPTIONS_VERSION)
220 if ecode < 0 {
221 return RebaseOptions{}, MakeGitError(ecode)
222 }
223 return rebaseOptionsFromC(&opts), nil
224}
225
226func rebaseOptionsFromC(opts *C.git_rebase_options) RebaseOptions {
227 return RebaseOptions{

Callers 1

TestRebaseGpgSignedFunction · 0.85

Calls 2

MakeGitErrorFunction · 0.85
rebaseOptionsFromCFunction · 0.85

Tested by 1

TestRebaseGpgSignedFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…