Function: magit-worktree-status

magit-worktree-status is an interactive and byte-compiled function defined in magit-worktree.el.

Signature

(magit-worktree-status WORKTREE)

Documentation

Show the status for the worktree at point.

If there is no worktree at point, then read one in the minibuffer. If the worktree at point is the one whose status is already being displayed in the current buffer, then show it in Dired instead.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-worktree.el
(defun magit-worktree-status (worktree)
  "Show the status for the worktree at point.
If there is no worktree at point, then read one in the
minibuffer.  If the worktree at point is the one whose
status is already being displayed in the current buffer,
then show it in Dired instead."
  (interactive
    (list (or (magit-section-value-if 'worktree)
              (magit-completing-read
               "Show status for worktree"
               (cl-delete (directory-file-name (magit-toplevel))
                          (magit-list-worktrees)
                          :test #'equal :key #'car)
               nil t))))
  (magit-diff-visit-directory worktree))