Function: magit-commit-instant-squash
magit-commit-instant-squash is an autoloaded, interactive and
byte-compiled function defined in magit-commit.el.
Signature
(magit-commit-instant-squash &optional COMMIT ARGS)
Documentation
Create a squash commit, and immediately combine it with its target.
If there is a reachable commit at point, target that. Otherwise prompt
for a commit. If magit-commit-squash-confirm is non-nil, always make
the user explicitly select a commit, in a buffer dedicated to that task.
Turing the rebase phase, when the two commits are being squashed, ask the user to author the final commit message, based on the original message of the targeted commit.
Like magit-commit-squash but also run a --autofixup rebase.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-commit.el
;;;###autoload
(defun magit-commit-instant-squash (&optional commit args)
"Create a squash commit, and immediately combine it with its target.
If there is a reachable commit at point, target that. Otherwise prompt
for a commit. If `magit-commit-squash-confirm' is non-nil, always make
the user explicitly select a commit, in a buffer dedicated to that task.
Turing the rebase phase, when the two commits are being squashed, ask
the user to author the final commit message, based on the original
message of the targeted commit.
Like `magit-commit-squash' but also run a `--autofixup' rebase."
(interactive (list (magit-commit-at-point)
(magit-commit-arguments)))
(magit-commit-squash-internal "--squash=" commit args nil nil 'rebase))