Function: magit-diff-visit-file--noselect
magit-diff-visit-file--noselect is a natively compiled function
defined in magit-diff.el.
Signature
(magit-diff-visit-file--noselect &optional GOTO-FILE)
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--noselect (&optional goto-file)
(pcase-let*
((`(,old ,new) (magit-diff-visit--sides))
(goto-from (and (not goto-file) (magit-diff-on-removed-line-p)))
(goto-file (or goto-file
(equal magit-buffer-diff-typearg "--no-index")))
(`(,rev ,file) (if goto-from old new))
(buffer (magit-find-file-noselect (if goto-file "{worktree}" rev)
file)))
(list buffer
(magit-diff-visit--position buffer rev file goto-from goto-file))))