Function: magit-diff-visit-file-other-frame

magit-diff-visit-file-other-frame is an interactive and byte-compiled function defined in magit-diff.el.

Signature

(magit-diff-visit-file-other-frame)

Documentation

From a diff visit a version of the file at point in another frame.

Like magit-diff-visit-file but always display in another frame.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defun magit-diff-visit-file-other-frame ()
  "From a diff visit a version of the file at point in another frame.
Like `magit-diff-visit-file' but always display in another frame."
  (interactive)
  (magit-diff-visit-file--internal
   (and magit-diff-visit-prefer-worktree
        (memq (magit-diff--dwim) '(staged unstaged)))
   #'switch-to-buffer-other-frame))