Function: magit-diff-while-committing
magit-diff-while-committing is an interactive and natively 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
git-commit-mode-map C-c C-d magit-diff-mode-map C-c C-d
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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))