Git log stats with regular expressions

I would like to do some stats on my git log to get something like:

10 Daniel Schmidt
5  Peter
1  Klaus

The first column is the count of commits and the second the commiter. I already got as far as this:

    git log --raw |
    grep "^Author: " |
    sort |
    uniq -c |
    sort -nr |
    less -FXRS

The interesting part is the

    grep "^Author: "

which i wanted to modify with a nice Regex to exclude the mail adress. With Rubular something like this http://rubular.com/r/mEzP2hFjGb worked, but if i insert it in the grep (or in a piped other one) it won't get me the right output.

Sidequestion: Is there a possibility to get the count and the author seperated by something else then whitespace while staying in this pipe command style? I would like to have a nicer seperator between both to us column later (and maybe some color ^^)

Thanks a lot for your help!

Answers


Google git-extras. It has a git summary that does this.


Need Your Help

How can in install VS 2008 without using ~6.5GB of space on my C drive?

installer diskspace visual-studio-2008-sp1

I am trying to run the VS 2008 SP1 installer, but it says that I need 6,366MB of available space, and my C drive currently only has 2,452MB available. Is there any good way to install that doesn't

Why limit the length of the result of a GROUP_CONCAT in MySQL?

mysql group-concat

What is the reason for limiting the results of a GROUP_CONCAT in MySQL to 1024? What are the implications of raising this limit to a much higher number?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.