git-owner
Version:
Get owners of files in git.
53 lines (41 loc) • 1.03 kB
Markdown
git-owner
Print "ownership" information for a file in git.
# Install
```
npm install -g git-owner
```
# Usage
Typically you'll probably want to use it on the command line:
```
Who has contributed most to the Ember.js README?
git owner README.md
tom@sproutcore.com
gilesb@gmail.com
peter.wagenet@gmail.com
bradfol@gmail.com
trevor@well.com
robert.w.jackson@me.com
ilya@burstcreations.com
andyhmltn@gmail.com
charles@sproutcore.com
bluewhale1982@gmail.com
tomhuda@strobecorp.com
wycats@gmail.com
cory.forsyth@gmail.com
tricknotes.rs@gmail.com
gimil@mozy.com
nwjsmith@gmail.com
builes.adolfo@gmail.com
bryan@brynary.com
200 lines.
```
You can also use it as a library:
```js
var gitBlameStats = require('../lib').gitBlameStats;
gitBlameStats(process.argv[2], function(err, stats) {
console.log(stats);
});
```
# Contributing
Contributions are welcome. Just fork, add your feature/bugfix on a branch with
tests, and submit a pull request.