Re: Show total commit count of two authors or more authors into first author

2015-12-06 Thread Jagan Teki
On 7 December 2015 at 01:01, Andreas Schwab  wrote:
> Jagan Teki  writes:
>
>> Out of which below three names are with same author which changed
>> while submitted patches.
>>   149  Jagan Teki
>>   122  Jagannadha Teki
>>   116  Jagannadha Sutradharudu Teki
>>
>> I need a command to show to add all commits and show first one as
>>387 Jagan Teki
>>
>> Can anyone help to do this?
>
> See the "MAPPING AUTHORS" section of git-shortlog(1).
>
>The .mailmap feature is used to coalesce together commits by the same
>person in the shortlog, where their name and/or email address was
>spelled differently.
>
>If the file .mailmap exists at the toplevel of the repository, or at
>the location pointed to by the mailmap.file or mailmap.blob
>configuration options, it is used to map author and committer names and
>email addresses to canonical real names and email addresses.

Thanks for the info, I'm able to map two author with e-mail but it's
not working when I group 3

$ .mailmap
Jagan Teki  Jagannadha Teki 

The above worked but how about 3 names mapping

$ .mailmap
Jagan Teki  Jagannadha Teki  Jagannadha
Sutradharudu Teki

Finally I need to map all 3 into Jagan Teki 

-- 
Jagan.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Show total commit count of two authors or more authors into first author

2015-12-06 Thread Andreas Schwab
Jagan Teki  writes:

> Out of which below three names are with same author which changed
> while submitted patches.
>   149  Jagan Teki
>   122  Jagannadha Teki
>   116  Jagannadha Sutradharudu Teki
>
> I need a command to show to add all commits and show first one as
>387 Jagan Teki
>
> Can anyone help to do this?

See the "MAPPING AUTHORS" section of git-shortlog(1).

   The .mailmap feature is used to coalesce together commits by the same
   person in the shortlog, where their name and/or email address was
   spelled differently.

   If the file .mailmap exists at the toplevel of the repository, or at
   the location pointed to by the mailmap.file or mailmap.blob
   configuration options, it is used to map author and committer names and
   email addresses to canonical real names and email addresses.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Show total commit count of two authors or more authors into first author

2015-12-06 Thread brian m. carlson
On Mon, Dec 07, 2015 at 01:45:19AM +0530, Jagan Teki wrote:
> Thanks for the info, I'm able to map two author with e-mail but it's
> not working when I group 3
> 
> $ .mailmap
> Jagan Teki  Jagannadha Teki 
> 
> The above worked but how about 3 names mapping
> 
> $ .mailmap
> Jagan Teki  Jagannadha Teki  Jagannadha
> Sutradharudu Teki
> 
> Finally I need to map all 3 into Jagan Teki 

You probably want to map two at a time.  So something like this:

  Jagan Teki  Jagannadha Teki 
  Jagan Teki  Jagannadha Sutradharudu Teki 
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187


signature.asc
Description: PGP signature


Re: Show total commit count of two authors or more authors into first author

2015-12-06 Thread Jagan Teki
On 7 December 2015 at 02:50, brian m. carlson
 wrote:
> On Mon, Dec 07, 2015 at 01:45:19AM +0530, Jagan Teki wrote:
>> Thanks for the info, I'm able to map two author with e-mail but it's
>> not working when I group 3
>>
>> $ .mailmap
>> Jagan Teki  Jagannadha Teki 
>>
>> The above worked but how about 3 names mapping
>>
>> $ .mailmap
>> Jagan Teki  Jagannadha Teki  Jagannadha
>> Sutradharudu Teki
>>
>> Finally I need to map all 3 into Jagan Teki 
>
> You probably want to map two at a time.  So something like this:
>
>   Jagan Teki  Jagannadha Teki 
>   Jagan Teki  Jagannadha Sutradharudu Teki 

I tried this before seems like some more hidden name's with same
author. anyway I found all and mapped the same. Thanks you very much.

-- 
Jagan.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html