{"thread":{"id":"19007","subject":"[PATCH] Describe how to generate .mailmap automatically using \"git log\"","startedAt":"2009-04-22T17:40:40Z","lastAt":"2009-04-22T17:40:40Z","messageCount":1,"participants":["Eric Hanchrow"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"111971","messageId":"70F0BA8D5F15094CBC8B7F2E4BBCD9B52772BF72@corp-mail-1","threadId":"19007","inReplyTo":null,"subject":"[PATCH] Describe how to generate .mailmap automatically using \"git log\"","fromName":"Eric Hanchrow","fromEmail":"erich@cozi.com","sentAt":"2009-04-22T17:40:40Z","receivedAt":"2009-04-22T17:40:40Z","isPatch":true,"sender":{"key":"erich@cozi.com","avatar":null},"body":"---\n Documentation/mailmap.txt |   10 ++++++++++\n 1 files changed, 10 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/mailmap.txt b/Documentation/mailmap.txt\nindex 288f04e..ae62669 100644\n--- a/Documentation/mailmap.txt\n+++ b/Documentation/mailmap.txt\n@@ -72,3 +72,13 @@ Santa Claus <santa.claus@northpole.xx> <me@company.xx>\n\n Use hash '#' for comments that are either on their own line, or after\n the email address.\n+\n+If most of your commits lack proper author names (as will be the case\n+if your repository was generated by linkgit:git-svn[1]), you can\n+generate most of a correct `.mailmap` automatically like this:\n+\n+------------\n+git log \"--pretty=%an <%ae>\" | sort | uniq > .mailmap\n+------------\n+\n+You will then have to edit the file to add the proper author names.\n--\n1.6.3.rc0.146.gd07d5\n"}]}