Information Technology Reference
In-Depth Information
5 My New Extra Name
1 John Doe
1 Paul "Moo" Cowboy
1 johny
As you can see, my name is mapped from
Włodzimierz Gajda
to
My New
Extra Name
. Open
.mailmap
file again and append another line:
John Doe <
john.doe@example.net
>
The line:
John Doe <
john.doe@example.net
>
The output of:
$ git shortlog -sn
is now:
5 My New Extra Name
2 John Doe
1 Paul "Moo" Cowboy
Commits that were previously assigned to johny are now treated as created by
John
Doe
.
How to assign revisions by
Paul "Moo" Cowboy
to
John Doe
? You will
achieve it with following
.mailmap
entry:
John Doe <john.doe@example.net>
John Doe
. Now, the output of
$ git shortlog -ns
is:
5 My New Extra Name
3 John Doe