Function: magit-ediff-show-unstaged

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

Signature

(magit-ediff-show-unstaged ARG1)

Documentation

Show unstaged 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-unstaged "magit-ediff" nil t)
(transient-define-suffix magit-ediff-show-unstaged (file)
  "Show unstaged 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-unstaged-p
  (interactive
    (list (magit-read-file-choice "Show unstaged changes for file"
                                  (magit-unstaged-files)
                                  "No unstaged files")))
  (magit-ediff-buffers (magit-ediff--find-file "{index}" file)
                       (magit-ediff--find-file "{worktree}" file)))