Function: git-commit-insert-trailer

git-commit-insert-trailer is an interactive and byte-compiled function defined in git-commit.el.

Signature

(git-commit-insert-trailer)

Documentation

Insert a commit message trailer.

See also manpage git-interpret-trailer(1). This command does not use that Git command, but the initial description still serves as a good introduction.

Key Bindings

Aliases

git-commit-insert-pseudo-header (obsolete since git-commit 4.0.0)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-commit.el
;;; Trailers

(transient-define-prefix git-commit-insert-trailer ()
  "Insert a commit message trailer.

See also manpage git-interpret-trailer(1).  This command does
not use that Git command, but the initial description still
serves as a good introduction."
  [[:description (##cond (prefix-arg
                          "Insert trailer ... by someone ")
                         ("Insert trailer ... by yourself"))
    ("a"   "Ack"          git-commit-ack)
    ("m"   "Modified"     git-commit-modified)
    ("r"   "Reviewed"     git-commit-review)
    ("s"   "Signed-off"   git-commit-signoff)
    ("t"   "Tested"       git-commit-test)]
   ["Insert trailer ... by someone"
    ("C-c" "Cc"           git-commit-cc)
    ("C-r" "Reported"     git-commit-reported)
    ("C-i" "Suggested"    git-commit-suggested)
    ("C-a" "Co-authored"  git-commit-co-authored)
    ("C-d" "Co-developed" git-commit-co-developed)]]
  ["Insert changelog"
   ("l g" "GNU-style"     git-commit-insert-changelog-gnu)
   ("l p" "plain"         git-commit-insert-changelog-plain)])