Function: magit-rebase-autosquash
magit-rebase-autosquash is an autoloaded, interactive and
byte-compiled function defined in magit-sequence.el.
Signature
(magit-rebase-autosquash SELECT ARGS)
Documentation
Combine squash and fixup commits with their intended targets.
By default only squash into commits that are not reachable from the upstream branch. If no upstream is configured or with a prefix argument, prompt for the first commit to potentially squash into.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-sequence.el
;;;###autoload
(defun magit-rebase-autosquash (select args)
"Combine squash and fixup commits with their intended targets.
By default only squash into commits that are not reachable from
the upstream branch. If no upstream is configured or with a prefix
argument, prompt for the first commit to potentially squash into."
(interactive (list current-prefix-arg
(magit-rebase-arguments)))
(magit-rebase-interactive-1
(and-let ((_(not select))
(upstream (magit-get-upstream-branch)))
(magit-git-string "merge-base" upstream "HEAD"))
(nconc (list "--autosquash" "--keep-empty") args)
"Type %p on a commit to squash into it and then rebase as necessary,"
"true" nil t nil t))