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

magit-diff-visit-file-other-frame is an interactive and natively 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

magit-diff-section-base-map C-x 5 <return> magit-diff-section-map C-x 5 <return>

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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))