Function: magit-commit-revise

magit-commit-revise is an interactive and natively compiled function defined in magit-commit.el.

Signature

(magit-commit-revise &optional COMMIT ARGS)

Documentation

Reword the message of an existing commit, without editing its tree.

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.

During a later rebase, when this commit gets squashed into its targeted commit, a combined commit is created which uses the message of the fixup commit and the tree of the targeted commit.

In other words, call "git commit --fixup=reword:COMMIT --edit".

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-commit.el
;;;###autoload
(defun magit-commit-revise (&optional commit args)
  "Reword the message of an existing commit, without editing its tree.

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.

During a later rebase, when this commit gets squashed into its targeted
commit, a combined commit is created which uses the message of the fixup
commit and the tree of the targeted commit.

In other words, call \"git commit --fixup=reword:COMMIT --edit\"."
  (interactive (list (magit-commit-at-point)
                     (magit-commit-arguments)))
  (magit-commit-squash-internal "--fixup=reword:" commit args 'nopatch 'edit))