Function: magit-rebase-remove-commit
magit-rebase-remove-commit is an autoloaded, interactive and
byte-compiled function defined in magit-sequence.el.
Signature
(magit-rebase-remove-commit COMMIT ARGS)
Documentation
Remove a single older commit using rebase.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-sequence.el
;;;###autoload
(defun magit-rebase-remove-commit (commit args)
"Remove a single older commit using rebase."
(interactive (list (magit-commit-at-point)
(magit-rebase-arguments)))
;; magit-rebase--perl-editor assumes that the comment character is "#".
(let ((magit-git-global-arguments
(nconc (list "-c" "core.commentChar=#")
magit-git-global-arguments)))
(magit-rebase-interactive-1 commit args
"Type %p on a commit to remove it,"
(apply-partially #'magit-rebase--perl-editor 'remove)
nil nil t)))