DefaultRebaseOptions returns a RebaseOptions with default values.
()
| 211 | |
| 212 | // DefaultRebaseOptions returns a RebaseOptions with default values. |
| 213 | func 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 | |
| 226 | func rebaseOptionsFromC(opts *C.git_rebase_options) RebaseOptions { |
| 227 | return RebaseOptions{ |
searching dependent graphs…