Function: magit-rebase-continue

magit-rebase-continue is an autoloaded, interactive and byte-compiled function defined in magit-sequence.el.

Signature

(magit-rebase-continue &optional NOEDIT)

Documentation

Restart the current rebasing operation.

In some cases this pops up a commit message buffer for you do edit. With a prefix argument the old message is reused as-is.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-sequence.el
;;;###autoload
(defun magit-rebase-continue (&optional noedit)
  "Restart the current rebasing operation.
In some cases this pops up a commit message buffer for you do
edit.  With a prefix argument the old message is reused as-is."
  (interactive "P")
  (cond
    ((not (magit-rebase-in-progress-p))
     (user-error "No rebase in progress"))
    ((magit-anything-unstaged-p t)
     (user-error "Cannot continue rebase with unstaged changes"))
    (t
     (let ((dir (magit-gitdir)))
       (when (and (magit-anything-staged-p)
                  (file-exists-p (expand-file-name "rebase-merge" dir))
                  (not (member (magit-toplevel)
                               magit--rebase-public-edit-confirmed)))
         (magit-commit-amend-assert
          (magit-file-line (expand-file-name "rebase-merge/orig-head" dir)))))
     (if noedit
         (with-environment-variables (("GIT_EDITOR" "true"))
           (magit-run-git-async (magit--rebase-resume-command) "--continue")
           (set-process-sentinel magit-this-process
                                 #'magit-sequencer-process-sentinel)
           magit-this-process)
       (magit-run-git-sequencer (magit--rebase-resume-command) "--continue")))))