[PATCH] Describe how to generate .mailmap automatically using "git log"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 Documentation/mailmap.txt |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/Documentation/mailmap.txt b/Documentation/mailmap.txt
index 288f04e..ae62669 100644
--- a/Documentation/mailmap.txt
+++ b/Documentation/mailmap.txt
@@ -72,3 +72,13 @@ Santa Claus <santa.claus@xxxxxxxxxxxx> <me@xxxxxxxxxx>

 Use hash '#' for comments that are either on their own line, or after
 the email address.
+
+If most of your commits lack proper author names (as will be the case
+if your repository was generated by linkgit:git-svn[1]), you can
+generate most of a correct `.mailmap` automatically like this:
+
+------------
+git log "--pretty=%an <%ae>" | sort | uniq > .mailmap
+------------
+
+You will then have to edit the file to add the proper author names.
--
1.6.3.rc0.146.gd07d5
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]