Skip to contentSkip to conversation

send-email: document --mailmap and associated configuration

PATCH In review Jacob Keller 2 participants 6 messages Sep 23, 2024 – Sep 24, 2024 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 send-email: document --mailmap and associated configuration

From: Jacob Keller <[email protected]>

241499aba007 ("send-email: add mailmap support via sendemail.mailmap and --mailmap", 2024-08-27) added support for --mailmap, and the associated sendemail.mailmap.* configuration variables. Add documentation to reflect this feature.

Fixes 241499aba007 ("send-email: add mailmap support via sendemail.mailmap and --mailmap")
---
 Documentation/config/sendemail.txt | 15 +++++++++++++++
 Documentation/git-send-email.txt   |  6 ++++++
 2 files changed, 21 insertions(+)
Documentation/config/sendemail.txt +15 -0
index 6a869d67eb90..14a58b3749e2 100644
@@ -30,6 +30,21 @@ sendemail.confirm::
 	in the linkgit:git-send-email[1] documentation for the meaning of these
 	values.
 
+sendemail.mailmap::
+	If true, makes linkgit:git-send-email[1] assume `--mailmap`,
+	otherwise assume `--no-mailmap`. False by default.
+
+sendemail.mailmap.file::
+	The location of a linkgit:git-send-email[1] specific augmenting
+	mailmap file. The default mailmap and `mailmap.file` are loaded
+	first. Thus, entries in this file take precedence over entries in
+	the default mailmap locations. See linkgit:git-mailmap[1].
+
+sendemail.mailmap.blob::
+	Like `sendemail.mailmap.file`, but consider the value as a reference
+	to a blob in the repository. Entries in `sendemail.mailmap.file`
+	take precedence over entries here. See linkgit:git-mailmap[1].
+
 sendemail.aliasesFile::
 	To avoid typing long email addresses, point this to one or more
 	email aliases files.  You must also supply `sendemail.aliasFileType`.
Documentation/git-send-email.txt +6 -0
index 2e6f1d63ae4a..dc5b122bb8e6 100644
@@ -414,6 +414,12 @@ exists when 'git send-email' is asked to add it (especially note that
 Failure to do so may not produce the expected result in the
 recipient's MUA.
 
+--[no-]mailmap::
+	Use the mailmap file (see linkgit:git-mailmap[1]) to map all
+	addresses to their canonical real name and email address. Additional
+	mailmap data specific to git-send-email may be provided using the
+	`sendemail.mailmap.file` or `sendemail.mailmap.blob` configuration
+	values. Defaults to `sendemail.mailmap`.
 
 Administering
 ~~~~~~~~~~~~~
Signature · 1 line
2.46.2.828.g9e56e24342b6
#1 lore raw
Quoted 6 lines · Jacob Keller

From: Jacob Keller <[email protected]>

241499aba007 ("send-email: add mailmap support via sendemail.mailmap and --mailmap", 2024-08-27) added support for --mailmap, and the associated sendemail.mailmap.* configuration variables. Add documentation to reflect this feature.

Makes sense. Thanks. Will queue.

#2 lore raw
In reply to Jacob Keller

Documentation/config/sendemail.txt sendemail.confirm:: · line 46

Quoted 4 lines · Jacob Keller
Documentation/config/sendemail.txt +4 -0
+sendemail.mailmap.blob::
+	Like `sendemail.mailmap.file`, but consider the value as a reference
+	to a blob in the repository. Entries in `sendemail.mailmap.file`
+	take precedence over entries here. See linkgit:git-mailmap[1].

No such documentation page git-mailmap[1] exists, hence this breaks "make check-docs".

#3 lore raw
Quoted 9 lines · Junio C Hamano

Documentation/config/sendemail.txt sendemail.confirm:: · line 46

Quoted 4 lines · Jacob Keller
Documentation/config/sendemail.txt +4 -0
+sendemail.mailmap.blob::
+	Like `sendemail.mailmap.file`, but consider the value as a reference
+	to a blob in the repository. Entries in `sendemail.mailmap.file`
+	take precedence over entries here. See linkgit:git-mailmap[1].

No such documentation page git-mailmap[1] exists, hence this breaks "make check-docs".

IOW linkgit:git-mailmap[1] -> linkgit:gitmailmap[5] everywhere. I did that while requeuing and reintegrating 'seen' for today's pushout, so unless there are other things to be updated, no need to resend.

Thanks.

#4 lore raw
Quoted 22 lines

-----Original Message-----
From: Junio C Hamano <[email protected]>
Sent: Tuesday, September 24, 2024 2:45 PM
To: Keller, Jacob E <[email protected]>
Cc: [email protected]; Jacob Keller <[email protected]>
Subject: Re: [PATCH] send-email: document --mailmap and associated configuration

Quoted 9 lines · Junio C Hamano

Documentation/config/sendemail.txt sendemail.confirm:: · line 46

Quoted 4 lines · Jacob Keller
Documentation/config/sendemail.txt +4 -0
+sendemail.mailmap.blob::
+	Like `sendemail.mailmap.file`, but consider the value as a reference
+	to a blob in the repository. Entries in `sendemail.mailmap.file`
+	take precedence over entries here. See linkgit:git-mailmap[1].

No such documentation page git-mailmap[1] exists, hence this breaks "make check-docs".

Quoted 6 lines

IOW linkgit:git-mailmap[1] -> linkgit:gitmailmap[5] everywhere. I did that while requeuing and reintegrating 'seen' for today's pushout, so unless there are other things to be updated, no need to resend.

Thanks.

Ah, yes. Thanks for fixing!

#5 lore raw
Quoted 20 lines · Jacob E
Quoted 20 lines

-----Original Message-----
From: Junio C Hamano <[email protected]>
Sent: Tuesday, September 24, 2024 2:45 PM
To: Keller, Jacob E <[email protected]>
Cc: [email protected]; Jacob Keller <[email protected]>
Subject: Re: [PATCH] send-email: document --mailmap and associated configuration

Quoted 9 lines · Junio C Hamano

Documentation/config/sendemail.txt sendemail.confirm:: · line 46

Quoted 4 lines · Jacob Keller
Documentation/config/sendemail.txt +4 -0
+sendemail.mailmap.blob::
+	Like `sendemail.mailmap.file`, but consider the value as a reference
+	to a blob in the repository. Entries in `sendemail.mailmap.file`
+	take precedence over entries here. See linkgit:git-mailmap[1].

No such documentation page git-mailmap[1] exists, hence this breaks "make check-docs".

Quoted 8 lines
Quoted 6 lines

IOW linkgit:git-mailmap[1] -> linkgit:gitmailmap[5] everywhere. I did that while requeuing and reintegrating 'seen' for today's pushout, so unless there are other things to be updated, no need to resend.

Thanks.

Ah, yes. Thanks for fixing!

Thanks for updating the documentation.