Function: magit-status--goto-file-position
magit-status--goto-file-position is a natively compiled function
defined in magit-status.el.
Signature
(magit-status--goto-file-position FILE LINE COLUMN)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-status.el
(defun magit-status--goto-file-position (file line column)
(pcase-let ((`(,upos ,uloc)
(magit-diff--locate-file-position file line column 'unstaged))
(`(,spos ,sloc)
(magit-diff--locate-file-position file line column 'staged)))
(cond ((eq uloc 'line) (goto-char upos))
((eq sloc 'line) (goto-char spos))
((eq uloc 'hunk) (goto-char upos))
((eq sloc 'hunk) (goto-char spos))
(upos (goto-char upos))
(spos (goto-char spos)))
(and (or upos spos)
(progn (magit-section-reveal (magit-current-section))
t))))