Function: git-rebase--show-commit
git-rebase--show-commit is a byte-compiled function defined in
git-rebase.el.
Signature
(git-rebase--show-commit &optional SCROLL)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-rebase.el
(defun git-rebase--show-commit (&optional scroll)
(let ((magit--disable-save-buffers t))
(save-excursion
(goto-char (line-beginning-position))
(if-let ((rev (with-slots (action-type target)
(git-rebase-current-line)
(and (eq action-type 'commit)
target))))
(pcase scroll
('up (magit-diff-show-or-scroll-up))
('down (magit-diff-show-or-scroll-down))
(_ (apply #'magit-show-commit rev
(magit-diff-arguments 'magit-revision-mode))))
(ding)))))