Is there a way to generate metrics for a GitHub project?
I found two solutions:
- ohloh: you can put your project on the site and it will analyze your source code and provide some interesting statistics
- GitStats: a simple statistics generator for any Git repository on your computer
git log
options (some or one of)
--stat[=width[,name-width]]
Generate a diffstat. You can override the default output width for 80-column terminal by --stat=width. The width of the filename part can be controlled by giving another width to it separated by a comma.
--numstat
Similar to --stat, but shows number of added and deleted lines in decimal notation and pathname without abbreviation, to make it more machine friendly. For binary files, outputs two - instead of saying 0 0.
--shortstat
Output only the last line of the --stat format containing total number of modified files, as well as number of added and deleted lines.