Function: git-commit-search-message-forward

git-commit-search-message-forward is an interactive and byte-compiled function defined in git-commit.el.

Signature

(git-commit-search-message-forward STRING)

Documentation

Search forward through message history for a match for STRING.

Save current message first.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-commit.el
(defun git-commit-search-message-forward (string)
  "Search forward 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-forward string)))