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
- Host: GitHub
- URL: https://github.com/ndp/gitlc
- Owner: ndp
- Created: 2012-01-17T04:56:49.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-17T05:04:17.000Z (over 14 years ago)
- Last Synced: 2025-04-06T18:14:15.673Z (about 1 year ago)
- Language: Ruby
- Homepage: http://blog.ndpsoftware.com/2012/01/getting-paid-by-locs.html
- Size: 434 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
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