Function: magit-log-move-to-revision
magit-log-move-to-revision is an interactive and byte-compiled
function defined in magit-log.el.
Signature
(magit-log-move-to-revision COMMIT)
Documentation
Read a commit and move to it in current log buffer.
If the chosen reference or commit isn't being displayed in the current log buffer, then inform the user about that and do nothing else.
If invoked outside any log buffer, then display the log buffer of the current repository first; creating it if necessary.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-log.el
(defun magit-log-move-to-revision (commit)
"Read a commit and move to it in current log buffer.
If the chosen reference or commit isn't being displayed in
the current log buffer, then inform the user about that and do
nothing else.
If invoked outside any log buffer, then display the log buffer
of the current repository first; creating it if necessary."
(interactive
(list (magit-completing-read
"In log, jump to"
(magit-list-refnames nil t)
nil 'any nil 'magit-revision-history
(or (and$ (magit-commit-at-point)
(magit-rev-fixup-target $))
(magit-get-current-branch)))))
(with-current-buffer
(cond ((derived-mode-p 'magit-log-mode)
(current-buffer))
((and$ (magit-get-mode-buffer 'magit-log-mode)
(pop-to-buffer-same-window $)))
((apply #'magit-log-all-branches (magit-log-arguments))))
(unless (magit-log-goto-commit-section (magit-rev-abbrev commit))
(user-error "%s isn't visible in the current log buffer" commit))))