Function: magit-diff-staged
magit-diff-staged is an interactive and natively compiled function
defined in magit-diff.el.
Signature
(magit-diff-staged &optional REV ARGS FILES)
Documentation
Show changes between the index and the HEAD commit.
With a prefix argument show changes between the index and a commit read from the minibuffer.
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-diff.el
;;;###autoload
(defun magit-diff-staged (&optional rev args files)
"Show changes between the index and the `HEAD' commit.
With a prefix argument show changes between the index and
a commit read from the minibuffer."
(interactive
(cons (and current-prefix-arg
(magit-read-branch-or-commit "Diff index and commit"))
(magit-diff-arguments)))
(magit-diff-setup-buffer rev "--cached" args files 'staged))