Monday, September 15, 2014

Analyzing contribution level to a git repository

I wondered if there is a handy tool for analyzing contribution level to a git repository, and found this: gitinspector and gitstats.

gitinspector
Once you got python installed, you can fire it with command like this:
./gitinspector.py -wTHl --format=htmlembedded --file-types=cs,cshtml,js,css  /path/to/git/repo/ >/path/to/resultdir/result.html

This will produce an HTML report
More options can be found here.

gitstats
If python is ready, on Mac another install is necessary, i.e., gnuplot. The easiest way is to use MacPorts to install it, by simply doing "sudo port install gnuplot".
Then run gitstats with command like this:

./gitstats /path/to/git/repo/ /path/to/resultdir/result

No comments:

Post a Comment