Function: magit-diff-working-tree

magit-diff-working-tree is an autoloaded, interactive and byte-compiled function defined in magit-diff.el.

Signature

(magit-diff-working-tree &optional REV ARGS FILES)

Documentation

Show changes between the current working tree and the HEAD commit.

With a prefix argument show changes between the working tree 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-working-tree (&optional rev args files)
  "Show changes between the current working tree and the `HEAD' commit.
With a prefix argument show changes between the working tree and
a commit read from the minibuffer."
  (interactive
    (cons (and current-prefix-arg
               (magit-read-branch-or-commit "Diff working tree and commit"))
          (magit-diff-arguments)))
  (magit-diff-setup-buffer (or rev "HEAD") nil args files 'committed))