Function: magit-ediff-show-staged

magit-ediff-show-staged is an autoloaded, interactive and byte-compiled function defined in magit-ediff.el.

Signature

(magit-ediff-show-staged ARG1)

Documentation

Show staged changes using Ediff.

This only allows looking at the changes; to stage, unstage, and discard changes using Ediff, use magit-ediff-stage.

FILE must be relative to the top directory of the repository.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-ediff.el
;;;###autoload(autoload 'magit-ediff-show-staged "magit-ediff" nil t)
(transient-define-suffix magit-ediff-show-staged (file)
  "Show staged changes using Ediff.

This only allows looking at the changes; to stage, unstage,
and discard changes using Ediff, use `magit-ediff-stage'.

FILE must be relative to the top directory of the repository."
  :inapt-if-not #'magit-anything-staged-p
  (interactive
    (list (magit-read-file-choice "Show staged changes for file"
                                  (magit-staged-files)
                                  "No staged files")))
  (magit-ediff-buffers (magit-ediff--find-file "HEAD" file)
                       (magit-ediff--find-file "{index}" file)))