Function: magit-jump-to-revision-diff
magit-jump-to-revision-diff is an interactive and natively compiled
function defined in magit-diff.el.
Signature
(magit-jump-to-revision-diff &optional EXPAND)
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-diff.el
(transient-define-suffix magit-jump-to-revision-diff (&optional expand)
:description "Diff"
:inapt-if-not (##cl-find-if (##eq (oref % type) 'file)
(oref magit-root-section children))
(interactive "P")
(cond-let
([section (cl-find-if (##eq (oref % type) 'file)
(oref magit-root-section children))]
(goto-char (oref section start))
(when expand
(with-local-quit (magit-section-show section))
(recenter 0)))
((message (format "No diff sections found")))))