()
| 43 | } |
| 44 | |
| 45 | func DefaultCherrypickOptions() (CherrypickOptions, error) { |
| 46 | c := C.git_cherrypick_options{} |
| 47 | |
| 48 | runtime.LockOSThread() |
| 49 | defer runtime.UnlockOSThread() |
| 50 | |
| 51 | ecode := C.git_cherrypick_options_init(&c, C.GIT_CHERRYPICK_OPTIONS_VERSION) |
| 52 | if ecode < 0 { |
| 53 | return CherrypickOptions{}, MakeGitError(ecode) |
| 54 | } |
| 55 | defer freeCherrypickOpts(&c) |
| 56 | return cherrypickOptionsFromC(&c), nil |
| 57 | } |
| 58 | |
| 59 | func (v *Repository) Cherrypick(commit *Commit, opts CherrypickOptions) error { |
| 60 | runtime.LockOSThread() |
searching dependent graphs…