git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/4] doc: am: say that --message-id adds a trailer

From
Kkristofferhaugsbakk@fastmail.com <kristofferhaugsbakk@fastmail.com>
Date
Feb 9, 2026, 17:34 UTC
Message-ID
<message-id_trailer.323@msgid.xyz>
In-Reply-To
<doc_am_gitlinks_and_am.messageId.321@msgid.xyz>
From: Kristoffer Haugsbakk <code@khaugsbakk.name>

The option `--message-id` was added in a078f732 (git-am: add --message-id/--no-message-id, 2014-11-25) back when git-interpret- trailers(1) was relatively new. Let’s spell out that it is a trailer and link to the dedicated trailer command.

Also use inline-verbatim for `Message-ID`.
Also link to git-interpret-trailers(1) on `--signoff`.
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
---
 Documentation/git-am.adoc | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/Documentation/git-am.adoc b/Documentation/git-am.adoc
index 70c605b4156..5e0d6e6fe02 100644
--- a/Documentation/git-am.adoc
+++ b/Documentation/git-am.adoc
@@ -37,9 +37,10 @@ OPTIONS
 
 -s::
 --signoff::
-	Add a `Signed-off-by` trailer to the commit message, using
-	the committer identity of yourself.
-	See the signoff option in linkgit:git-commit[1] for more information.
+	Add a `Signed-off-by` trailer to the commit message (see
+	linkgit:git-interpret-trailers[1]), using the committer identity
+	of yourself.  See the signoff option in linkgit:git-commit[1]
+	for more information.
 
 -k::
 --keep::
@@ -83,10 +84,11 @@ OPTIONS
 
 -m::
 --message-id::
-	Pass the `-m` flag to linkgit:git-mailinfo[1],
-	so that the Message-ID header is added to the commit message.
-	The `am.messageid` configuration variable can be used to specify
-	the default behaviour.
+	Pass the `-m` flag to linkgit:git-mailinfo[1], so that the
+	`Message-ID` header is added as a trailer (see
+	linkgit:git-interpret-trailers[1]).  The `am.messageid`
+	configuration variable can be used to specify the default
+	behaviour.
 
 --no-message-id::
 	Do not add the Message-ID header to the commit message.
-- 
2.53.0.26.g2afa8602a26
Previous: Kristoffer HaugsbakkNext: kristofferhaugsbakk@fastmail.com
Message 4 of 8 in “doc: am: improve command linking and add am.messageId”
  1. 0/4 doc: am: improve command linking and add am.messageIdkristofferhaugsbakk@fastmail.com, Feb 9, 2026
  2. 1/4 doc: am: normalize git(1) command linkskristofferhaugsbakk@fastmail.com, Feb 9, 2026
  3. Kristoffer HaugsbakkFeb 11, 2026
  4. 2/4 doc: am: say that --message-id adds a trailerkristofferhaugsbakk@fastmail.com, Feb 9, 2026
  5. 3/4 doc: am: add missing config am.messageIdkristofferhaugsbakk@fastmail.com, Feb 9, 2026
  6. 4/4 doc: am: fill out hook discussionkristofferhaugsbakk@fastmail.com, Feb 9, 2026
  7. D. Ben KnobleFeb 9, 2026
  8. Junio C HamanoFeb 9, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.