How can I sum up the lines added/removed by a user in a git repo?

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-05-09T03:13:22Z Indexed on 2010/05/09 3:18 UTC
Read the original article Hit count: 295

Filed under:
|

I am trying to find the total number of lines added and total number of lines removed by a user in a git repository. I looked at http://stackoverflow.com/questions/1265040/how-to-count-total-lines-changed-by-a-specific-author-in-a-git-repository, which had the command git log --author="<authorname>" --pretty=tformat: --numstat, but the answer failed to give a script(however simple) to total the lines changed. What's the simplest way to sum up the lines added/removed?

© Stack Overflow or respective owner

Related posts about git

Related posts about script