Function: magit-rebase-autosquash
magit-rebase-autosquash is an interactive and natively 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
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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-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))