Command line utility to count lines of code contributed to a git repository.
$ ./gitlc.rb -r git-workspace-directory
- -A, --aliases file.yml YAML file with aliases for authors
- -c, --count c Number of versions to investigate; default is all
- -s, --since c Show commits more recent than a specific date
- -a, --author a Show commits filtered by given author
- -p, --people Show commit data by person
- -d, --date Show commit data by date
- -m, --month Show commit data by month
- -l, --log Show commit data
- -h, --help Display this screen
Using the -A option, you can provide an alias file to combine two different developers' line counts. This may be because a single developer uses multiple accounts, has changed email throughout a project, or you want to group users together for a metric.
The format of the file is:
--- andy: - ndp - andy.peterson - a.peterson - apeterson steve: - sjobs - jobs
$ ./gitlc.rb -p -r ../AutoRegX/ [["ndp", {:net=>438, :adds=>438, :deletes=>0}]]
$ ./gitlc.rb -m -r ../AutoRegX/ [["2011-12", {:net=>438, :adds=>438, :deletes=>0}]]
Released under the MIT license, http://www.opensource.org/licenses/MIT