Function: magit-rebase-subset
magit-rebase-subset is an autoloaded, interactive and byte-compiled
function defined in magit-sequence.el.
Signature
(magit-rebase-subset NEWBASE START ARGS)
Documentation
Rebase a subset of the current branch's history onto a new base.
Rebase commits from START to HEAD onto NEWBASE.
START has to be selected from a list of recent commits.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-sequence.el
;;;###autoload
(defun magit-rebase-subset (newbase start args)
"Rebase a subset of the current branch's history onto a new base.
Rebase commits from START to `HEAD' onto NEWBASE.
START has to be selected from a list of recent commits."
(interactive (list (magit-read-other-branch-or-commit
"Rebase subset onto" nil
(magit-get-upstream-branch))
nil
(magit-rebase-arguments)))
(cond (start
(message "Rebasing...")
(magit-run-git-sequencer "rebase" "--onto" newbase start args)
(message "Rebasing...done"))
((magit-log-select
`(lambda (commit)
(magit-rebase-subset ,newbase (concat commit "^") (list ,@args)))
(concat "Type %p on a commit to rebase it "
"and commits above it onto " newbase ",")))))