v2.18.0-rc0~70^2 (mailmap: update brian m. carlson's email address, 2018-05-08) changed the mailmap to map sandals@xxxxxxxxxxxxxxxxxxxxxxx -> brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx> instead of sandals@xxxxxxxxxxxxxxxxxxxx -> brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxxxxx> That means the mapping Brian M. Carlson <sandals@xxxxxxxxxxxxxxxxxxxxxxx> -> brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx> is redundant, so we can remove it. More importantly, it means that the identity "Brian M. Carlson <sandals@xxxxxxxxxxxxxxxxxxxx>" used in some commits is not normalized any more. Add a mapping for it. Noticed while updating Debian's Git packaging, which uses "git shortlog --no-merges" to produce a list of changes in each version, grouped by author's (normalized) name. Signed-off-by: Jonathan Nieder <jrnieder@xxxxxxxxx> --- Hi, brian m. carlson wrote: > I think this commit message makes sense. I apparently still fail to > understand how the .mailmap format works, so I can't tell you if the > patch is correct. Thanks for looking it over. What would it take to make the patch make sense, too? ;-) Most mailmap entries are of the form Some Name <someemail@xxxxxxxxxxx> which means "Wherever you see the email address someemail@xxxxxxxxxxx, canonicalize the author's name to Some Name". We can use that: brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx> When we see sandals@xxxxxxxxxxxxxxxxxxxxxxx, we also want to canonicalize the email address. For that, we can do brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx> <sandals@xxxxxxxxxxxxxxxxxxxxxxx> There's only one person who has used these email addresses, so we don't have to do matching by name. If we wanted to tighten the name normalization to match by name, I think we'd do something like brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx> Brian M. Carlson but I can't get that to seem to have any effect when I test with the "git check-mailmap" command --- for example, "git check-mailmap 'Dana How <random.email@xxxxxxxxxxx>'" does not map and "git check-mailmap 'Random Name <danahow@xxxxxxxxx>'" maps to 'Dana L. How <danahow@xxxxxxxxx>'. The even tighter matching used in v1 brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx> Brian M. Carlson <sandals@xxxxxxxxxxxxxxxxxxxx> does work, but it's unnecessary complexity. We don't need it. How about this? Changes since v1: - loosened the matching to only look at email and ignore name - no other changes .mailmap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index f165222a78..bef3352b0d 100644 --- a/.mailmap +++ b/.mailmap @@ -25,7 +25,7 @@ Ben Walton <bdwalton@xxxxxxxxx> <bwalton@xxxxxxxxxxxxxxxxxx> Benoit Sigoure <tsunanet@xxxxxxxxx> <tsuna@xxxxxxxxxxxxx> Bernt Hansen <bernt@xxxxxxxxx> <bernt@xxxxxxxxxxxxxxxxxxx> Brandon Casey <drafnel@xxxxxxxxx> <casey@xxxxxxxxxxxxxxx> -brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx> Brian M. Carlson <sandals@xxxxxxxxxxxxxxxxxxxxxxx> +brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx> brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx> <sandals@xxxxxxxxxxxxxxxxxxxxxxx> Bryan Larsen <bryan@xxxxxxxxx> <bryan.larsen@xxxxxxxxx> Bryan Larsen <bryan@xxxxxxxxx> <bryanlarsen@xxxxxxxxx> -- 2.19.0.444.g18242da7ef