git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mailmap distinguishing names
@ 2009-07-15 22:22 Ondrej Certik
  2009-07-16  8:55 ` Kirill Smelkov
  0 siblings, 1 reply; 5+ messages in thread
From: Ondrej Certik @ 2009-07-15 22:22 UTC (permalink / raw)
  To: Git Mailing List

Hi,

I know how to use mailmap to map names to email addresses, however,
what if we have some old commits that look like:

commit 1815ccf8ea8a7d99736d9b15c10d2ddf41162faf
Author: ondrej.certik <devnull@localhost>
Date:   Sat Oct 6 01:57:03 2007 +0000

    test for a series bug 364 added, but XFAILed, because sometimes it works, so

commit ef95d618e1fda2dc6b50a0edf343a7b321467527
Author: kirill.smelkov <devnull@localhost>
Date:   Fri Oct 5 20:10:04 2007 +0000

    pprint: add support for multile indexes in unicode mode

commit 7e74ebdf2701f0ab213a6e5ba47b7860fcf90cff
Author: fredrik.johansson <devnull@localhost>
Date:   Fri Oct 5 16:41:04 2007 +0000

    add abc module



E.g. for some reason the addresses are <devnull@localhost>, but the
names are correct (svn names). Then "git shortlog -ns" shows things
like:

   654  Ondrej Certik
   322  Kirill Smelkov
   268  ondrej.certik
   208  Mateusz Paprocki
    74  fredrik.johansson

is there some way to join "ondrej.certik" with "Ondrej Certik"? If the
email address for ondrej.certik was some better one, it'd be easy, but
since it's the same for all the old committers, maybe the only way is
to rewrite our history and fix this. But I just wanted to check if
there is some other way too.

Thanks,
Ondrej

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mailmap distinguishing names
  2009-07-15 22:22 mailmap distinguishing names Ondrej Certik
@ 2009-07-16  8:55 ` Kirill Smelkov
  2009-07-16 17:09   ` Ondrej Certik
  0 siblings, 1 reply; 5+ messages in thread
From: Kirill Smelkov @ 2009-07-16  8:55 UTC (permalink / raw)
  To: Ondrej Certik; +Cc: Git Mailing List

On Wed, Jul 15, 2009 at 04:22:08PM -0600, Ondrej Certik wrote:
> Hi,
> 
> I know how to use mailmap to map names to email addresses, however,
> what if we have some old commits that look like:
> 
> commit 1815ccf8ea8a7d99736d9b15c10d2ddf41162faf
> Author: ondrej.certik <devnull@localhost>
> Date:   Sat Oct 6 01:57:03 2007 +0000
> 
>     test for a series bug 364 added, but XFAILed, because sometimes it works, so
> 
> commit ef95d618e1fda2dc6b50a0edf343a7b321467527
> Author: kirill.smelkov <devnull@localhost>
> Date:   Fri Oct 5 20:10:04 2007 +0000
> 
>     pprint: add support for multile indexes in unicode mode
> 
> commit 7e74ebdf2701f0ab213a6e5ba47b7860fcf90cff
> Author: fredrik.johansson <devnull@localhost>
> Date:   Fri Oct 5 16:41:04 2007 +0000
> 
>     add abc module
> 
> 
> 
> E.g. for some reason the addresses are <devnull@localhost>, but the
> names are correct (svn names). Then "git shortlog -ns" shows things
> like:
> 
>    654  Ondrej Certik
>    322  Kirill Smelkov
>    268  ondrej.certik
>    208  Mateusz Paprocki
>     74  fredrik.johansson
> 
> is there some way to join "ondrej.certik" with "Ondrej Certik"? If the

You just do

    Ondrej Certik <...@...>   ondrej.certik  <devnull@localhost>


in .mailmap

See Documentation/mailmap.txt for details

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mailmap distinguishing names
  2009-07-16  8:55 ` Kirill Smelkov
@ 2009-07-16 17:09   ` Ondrej Certik
  2009-07-16 17:43     ` Kirill Smelkov
  0 siblings, 1 reply; 5+ messages in thread
From: Ondrej Certik @ 2009-07-16 17:09 UTC (permalink / raw)
  To: Kirill Smelkov; +Cc: Git Mailing List

Hi Kirill!

>
> You just do
>
>    Ondrej Certik <...@...>   ondrej.certik  <devnull@localhost>
>
>
> in .mailmap
>
> See Documentation/mailmap.txt for details

Many thanks for help, that's exactly what I want.

Only I think I am probably doing something stupid, because I can't get
it to work (I use the latest git from git),
I put this into the root directory:

$ cat .mailmap
Ondrej Certik <...@...>   ondrej.certik <devnull@localhost>

(if have my real address instead of the ...@..), and:

$ git shortlog -ns
  654  Ondrej Certik
  322  Kirill Smelkov
  268  ondrej.certik
[...]

it still shows ondrej.certik.  I will try to debug it why it doesn't
work, I think according to the documentation it should work.

Ondrej

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mailmap distinguishing names
  2009-07-16 17:09   ` Ondrej Certik
@ 2009-07-16 17:43     ` Kirill Smelkov
  2009-07-16 18:41       ` Ondrej Certik
  0 siblings, 1 reply; 5+ messages in thread
From: Kirill Smelkov @ 2009-07-16 17:43 UTC (permalink / raw)
  To: Ondrej Certik; +Cc: Git Mailing List

On Thu, Jul 16, 2009 at 11:09:06AM -0600, Ondrej Certik wrote:
> Hi Kirill!
> 
> >
> > You just do
> >
> >    Ondrej Certik <...@...>   ondrej.certik  <devnull@localhost>
> >
> >
> > in .mailmap
> >
> > See Documentation/mailmap.txt for details
> 
> Many thanks for help, that's exactly what I want.
> 
> Only I think I am probably doing something stupid, because I can't get
> it to work (I use the latest git from git),
> I put this into the root directory:
> 
> $ cat .mailmap
> Ondrej Certik <...@...>   ondrej.certik <devnull@localhost>
> 
> (if have my real address instead of the ...@..), and:
> 
> $ git shortlog -ns
>   654  Ondrej Certik
>   322  Kirill Smelkov
>   268  ondrej.certik
> [...]
> 
> it still shows ondrej.certik.  I will try to debug it why it doesn't
> work, I think according to the documentation it should work.

It does work with the following mailmap:

    Ondrej Certik <ondrej@certik.cz>    ondrej.certik <devnull@localhost>

before:

$ git shortlog -s | grep -i certik
   654  Ondrej Certik
   268  ondrej.certik


after:

$ git shortlog -s | grep -i certik
   922  Ondrej Certik

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mailmap distinguishing names
  2009-07-16 17:43     ` Kirill Smelkov
@ 2009-07-16 18:41       ` Ondrej Certik
  0 siblings, 0 replies; 5+ messages in thread
From: Ondrej Certik @ 2009-07-16 18:41 UTC (permalink / raw)
  To: Kirill Smelkov; +Cc: Git Mailing List

On Thu, Jul 16, 2009 at 11:43 AM, Kirill
Smelkov<kirr@landau.phys.spbu.ru> wrote:
> On Thu, Jul 16, 2009 at 11:09:06AM -0600, Ondrej Certik wrote:
>> Hi Kirill!
>>
>> >
>> > You just do
>> >
>> >    Ondrej Certik <...@...>   ondrej.certik  <devnull@localhost>
>> >
>> >
>> > in .mailmap
>> >
>> > See Documentation/mailmap.txt for details
>>
>> Many thanks for help, that's exactly what I want.
>>
>> Only I think I am probably doing something stupid, because I can't get
>> it to work (I use the latest git from git),
>> I put this into the root directory:
>>
>> $ cat .mailmap
>> Ondrej Certik <...@...>   ondrej.certik <devnull@localhost>
>>
>> (if have my real address instead of the ...@..), and:
>>
>> $ git shortlog -ns
>>   654  Ondrej Certik
>>   322  Kirill Smelkov
>>   268  ondrej.certik
>> [...]
>>
>> it still shows ondrej.certik.  I will try to debug it why it doesn't
>> work, I think according to the documentation it should work.
>
> It does work with the following mailmap:
>
>    Ondrej Certik <ondrej@certik.cz>    ondrej.certik <devnull@localhost>
>
> before:
>
> $ git shortlog -s | grep -i certik
>   654  Ondrej Certik
>   268  ondrej.certik
>
>
> after:
>
> $ git shortlog -s | grep -i certik
>   922  Ondrej Certik


Now it works! Many thanks, I must have been doing something really stupid.

Ondrej

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-16 18:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15 22:22 mailmap distinguishing names Ondrej Certik
2009-07-16  8:55 ` Kirill Smelkov
2009-07-16 17:09   ` Ondrej Certik
2009-07-16 17:43     ` Kirill Smelkov
2009-07-16 18:41       ` Ondrej Certik

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).