Function: git-commit-search-message-backward
git-commit-search-message-backward is an interactive and natively
compiled function defined in git-commit.el.
Signature
(git-commit-search-message-backward STRING)
Documentation
Search backward through message history for a match for STRING.
Save current message first.
Key Bindings
git-commit-mode-map C-c M-p
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/git-commit.el
(defun git-commit-search-message-backward (string)
"Search backward through message history for a match for STRING.
Save current message first."
(interactive
(list (read-string (format-prompt "Comment substring"
log-edit-last-comment-match)
nil nil log-edit-last-comment-match)))
(cl-letf (((symbol-function #'log-edit-previous-comment)
(symbol-function #'git-commit-prev-message)))
(log-edit-comment-search-backward string)))