Abort aborts a rebase that is currently in progress, resetting the repository and working directory to their state before rebase began.
()
| 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 { |
| 463 | runtime.LockOSThread() |
| 464 | defer runtime.UnlockOSThread() |
| 465 | |
| 466 | err := C.git_rebase_abort(rebase.ptr) |
| 467 | runtime.KeepAlive(rebase) |
| 468 | if err < 0 { |
| 469 | return MakeGitError(err) |
| 470 | } |
| 471 | return nil |
| 472 | } |
| 473 | |
| 474 | // Free frees the Rebase object. |
| 475 | func (r *Rebase) Free() { |