From: Ramsay Jones <ramsay@ramsayjones.plus.com>
To: Johannes Schindelin <johannes.schindelin@gmx.de>
Cc: Junio C Hamano <gitster@pobox.com>,
GIT Mailing-list <git@vger.kernel.org>
Subject: Re: [PATCH] mailmap: update my entry with new email address
Date: Tue, 1 Sep 2015 18:14:10 +0100 [thread overview]
Message-ID: <55E5DCE2.8050403@ramsayjones.plus.com> (raw)
In-Reply-To: <01dbb6005800a8816a5f6b9ae740dbc9@www.dscho.org>
Hi Johannes,
On 01/09/15 17:11, Johannes Schindelin wrote:
> Hi Ramsay,
>
> On 2015-09-01 17:50, Ramsay Jones wrote:
>
>> diff --git a/.mailmap b/.mailmap
>> index ece2951..e5b4126 100644
>> --- a/.mailmap
>> +++ b/.mailmap
>> @@ -186,7 +186,7 @@ Philip Jägenstedt <philip@foolip.org>
>> <philip.jagenstedt@gmail.com>
>> Philipp A. Hartmann <pah@qo.cx> <ph@sorgh.de>
>> Philippe Bruhat <book@cpan.org>
>> Ralf Thielow <ralf.thielow@gmail.com> <ralf.thielow@googlemail.com>
>> -Ramsay Allan Jones <ramsay@ramsay1.demon.co.uk>
>> +Ramsay Jones <ramsay@ramsayjones.plus.com> <ramsay@ramsay1.demon.co.uk>
>> René Scharfe <l.s.r@web.de> <rene.scharfe@lsrfire.ath.cx>
>> Robert Fitzsimons <robfitz@273k.net>
>> Robert Shearman <robertshearman@gmail.com> <rob@codeweavers.com>
> The idea of the .mailmap file is to fix inconsistent names in the history. For example, if you look e.g. at commit 6ebdee5af47df0c64354e452419015a694c25f5f, you will see that your middle name was recorded, but if you look e.g. at f84df81f654aeb0ac4582e0b3be162cba6ea5232 you will see that it was not always recorded with your changes.
Hmm, I assume you are using 'git log' or 'git show' to look at these; try this:
$ git show --use-mailmap 6ebdee5af47df0c64354e452419015a694c25f5
$ git log -1 --use-mailmap f84df81f654aeb0ac4582e0b3be162cba6ea523
or indeed, this:
$ git check-mailmap "Ramsay Allan Jones <ramsay@ramsay1.demon.co.uk>"
Ramsay Jones <ramsay@ramsayjones.plus.com>
$
Also, 'git shortlog' seems to be working just fine. (The first few commits, which include
my middle name, were a mistake; back then git used to look into the GECOS field if
you didn't set your name in the config ...). [If it isn't clear, I don't want to see my middle
name!]
Yes, I was a little surprised that '--use-mailmap' was not on by default, but then I have a
very vague recollection of a discussion on the list which decided otherwise. (I'm far too
lazy to search the archives ...).
ATB,
Ramsay Jones
>
> Therefore I would recommend leaving the old line in place, and just *adding* another one.
>
> Besides, for consistency I would leave the middle name in there. Otherwise, people might be wondering why their shortlog calls bring up some other name. In other words, if you add a new line, you really want to use the same clear name as before.
>
> You actually do not even need to add a new line if you plan on submitting patches with your middle name. Remember: the main purpose of .mailmap is to support shortlog, i.e. appropriate grouping of patches by person (such as the two commits I mentioned above).
>
> Ciao,
> Johannes
>
> P.S.: That's a major bummer on your three forced-offline weeks. I feel with ya!
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2015-09-01 17:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-01 15:50 [PATCH] mailmap: update my entry with new email address Ramsay Jones
2015-09-01 16:11 ` Johannes Schindelin
2015-09-01 17:07 ` Stefan Beller
2015-09-01 17:14 ` Ramsay Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55E5DCE2.8050403@ramsayjones.plus.com \
--to=ramsay@ramsayjones.plus.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=johannes.schindelin@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).