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

Method Finish

rebase.go:448–459  ·  view source on GitHub ↗

Finish finishes a rebase that is currently in progress once all patches have been applied.

()

Source from the content-addressed store, hash-verified

446
447// Finish finishes a rebase that is currently in progress once all patches have been applied.
448func (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.
462func (rebase *Rebase) Abort() error {

Callers 3

TestRebaseNoConflictsFunction · 0.80
TestRebaseGpgSignedFunction · 0.80

Calls 1

MakeGitErrorFunction · 0.85

Tested by 3

TestRebaseNoConflictsFunction · 0.64
TestRebaseGpgSignedFunction · 0.64