Finish finishes a rebase that is currently in progress once all patches have been applied.
()
| 446 | |
| 447 | // Finish finishes a rebase that is currently in progress once all patches have been applied. |
| 448 | func (rebase *Rebase) Finish() error { |
| 449 | runtime.LockOSThread() |
| 450 | defer runtime.UnlockOSThread() |
| 451 | |
| 452 | err := C.git_rebase_finish(rebase.ptr, nil) |
| 453 | runtime.KeepAlive(rebase) |
| 454 | if err < 0 { |
| 455 | return MakeGitError(err) |
| 456 | } |
| 457 | |
| 458 | return nil |
| 459 | } |
| 460 | |
| 461 | // Abort aborts a rebase that is currently in progress, resetting the repository and working directory to their state before rebase began. |
| 462 | func (rebase *Rebase) Abort() error { |