Variable: vc-git-log-edit-summary-target-len

vc-git-log-edit-summary-target-len is a customizable variable defined in vc-git.el.gz.

Value

nil

Documentation

Target length for Git commit summary lines.

If a number, characters in Summary: lines beyond this length are displayed in the vc-git-log-edit-summary-target-warning face. A value of any other type means no highlighting.

By setting this to an integer around 50, you can improve the compatibility of your commit messages with Git commands that print the summary line in width-constrained contexts. However, many commit summaries will need to exceed this length.

See also vc-git-log-edit-summary-max-len.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
;;; STATE-CHANGING FUNCTIONS

(defcustom vc-git-log-edit-summary-target-len nil
  "Target length for Git commit summary lines.
If a number, characters in Summary: lines beyond this length are
displayed in the `vc-git-log-edit-summary-target-warning' face.
A value of any other type means no highlighting.

By setting this to an integer around 50, you can improve the
compatibility of your commit messages with Git commands that
print the summary line in width-constrained contexts.  However,
many commit summaries will need to exceed this length.

See also `vc-git-log-edit-summary-max-len'."
  :type '(choice (const :tag "No target" nil)
                 (natnum :tag "Target length"))
  :safe (lambda (x) (or (not x) (natnump x))))