tags:

views:

127

answers:

2

Does anyone no of a command or script that will output each author that has committed to the project followed by the number of lines they have contributed.

e.g. something similar to the following:

Author       Insertions   Deletions
Bob Dole     1240         409
Sarah J      481          140
Jim Helper   388          23

Cheers, Ben

+1  A: 

A quick search dug up GitStats, though that only generates HTML output.

Update: A bit more digging turned up LookAtGit, which seems more along the lines of what you were looking for.

Second Update: As mentioned on a comment to the original question, this can also be accomplished with git in conjunction with sed/awk. There's a nice example of how to do this right here on SO.

Damien Wilson
But it is open source, so you could make it generate any output format you want...
Dave DeLong
True, though I'm assuming he wouldn't be asking for a pre-existing script if he had the time to whip one up himself.
Damien Wilson
+5  A: 

git shortlog -sne

sza
I was about to mention this in my answer as well, you beat me to the punch.
Damien Wilson