An open API service indexing awesome lists of open source software.

https://github.com/ndp/gitlc

Git Repository Line Count Utility
https://github.com/ndp/gitlc

Last synced: about 1 year ago
JSON representation

Git Repository Line Count Utility

Awesome Lists containing this project

README

          

# Git Line Count

Command line utility to count lines of code contributed to a git repository.

## Usage

$ ./gitlc.rb -r git-workspace-directory

### Options
* -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

#### Alias file

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

#### By person

$ ./gitlc.rb -p -r ../AutoRegX/

[["ndp", {:net=>438, :adds=>438, :deletes=>0}]]

#### By month

$ ./gitlc.rb -m -r ../AutoRegX/

[["2011-12", {:net=>438, :adds=>438, :deletes=>0}]]

#### Copyright

Released under the MIT license, http://www.opensource.org/licenses/MIT