Function: magit-status--goto-file-position
magit-status--goto-file-position is a byte-compiled function defined
in magit-status.el.
Signature
(magit-status--goto-file-position FILE LINE COLUMN)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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)))
(when (or upos spos)
(magit-section-reveal (magit-current-section)))))