Function: magit-diff-staged

magit-diff-staged is an autoloaded, interactive and byte-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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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))