It's not possible? Says who?

Archive for January, 2012

Quick & Dirty git statistics (commits, insertions, deletions)

with one comment

Need to know who made how many commits and how many changes in your source tree?

Here’s a quick and dirty way to generate such statistics:

perl -e 'foreach(`git shortlog -s -n`){'\
'foreach(`git log --author="$a" --pretty=tformat: --numstat -C`)'\
'printf "%5dc %8d+ %8d- %s\n",$c,$p,$m,$a;}'


   72c    26183+     2506- Bob Byte
   20c     1270+      104- Jim Vim

Written by johnLate

January 31st, 2012 at 8:30 pm

Posted in Uncategorized