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

Method Abort

rebase.go:462–472  ·  view source on GitHub ↗

Abort aborts a rebase that is currently in progress, resetting the repository and working directory to their state before rebase began.

()

Source from the content-addressed store, hash-verified

460
461// Abort aborts a rebase that is currently in progress, resetting the repository and working directory to their state before rebase began.
462func (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.
475func (r *Rebase) Free() {

Callers 1

TestRebaseAbortFunction · 0.80

Calls 1

MakeGitErrorFunction · 0.85

Tested by 1

TestRebaseAbortFunction · 0.64