Function: magit-diff-while-committing

magit-diff-while-committing is an autoloaded, interactive and byte-compiled function defined in magit-diff.el.

Signature

(magit-diff-while-committing)

Documentation

While committing, show the changes that are about to be committed.

While amending, invoking the command again toggles between showing just the new changes or all the changes that will be committed.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
;;;###autoload
(defun magit-diff-while-committing ()
  "While committing, show the changes that are about to be committed.
While amending, invoking the command again toggles between
showing just the new changes or all the changes that will
be committed."
  (interactive)
  (unless (magit-commit-message-buffer)
    (user-error "No commit in progress"))
  (magit-commit-diff--show))