Variable: git-commit-usage-message

git-commit-usage-message is a variable defined in git-commit.el.

Value

"Type \\[with-editor-finish] to finish, \\[with-editor-cancel] to cancel, and \\[git-commit-prev-message] and \\[git-commit-next-message] to recover older messages"

Documentation

Message displayed when editing a commit message.

When this is nil, then with-editor-usage-message(var)/with-editor-usage-message(fun) is displayed instead. One of these messages has to be displayed; otherwise the user gets to see the message displayed by server-execute. That message is misleading and because we cannot prevent it from being displayed, we have to immediately show another message to prevent the user from seeing it.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-commit.el
(defvar git-commit-usage-message git-commit-default-usage-message
  "Message displayed when editing a commit message.
When this is nil, then `with-editor-usage-message' is displayed
instead.  One of these messages has to be displayed; otherwise
the user gets to see the message displayed by `server-execute'.
That message is misleading and because we cannot prevent it from
being displayed, we have to immediately show another message to
prevent the user from seeing it.")