git-days
v1.0.1
Published
How many days did you work on that project?
Downloads
11
Readme
git-days
How many days did you work on that project?
CLI tool to get a print out of how many days each committer committed to a project and how many total commits they've made.
Getting started
npm install -g git-days
cd /path/to/project
git-days
Output:
┌──────────────────────┬──────┬─────────┐
│ Author │ Days │ Commits │
├──────────────────────┼──────┼─────────┤
│ Jane │ 46 │ 443 │
├──────────────────────┼──────┼─────────┤
│ Bob │ 16 │ 96 │
├──────────────────────┼──────┼─────────┤
│ Dave │ 70 │ 454 │
├──────────────────────┼──────┼─────────┤
│ Joe │ 1 │ 1 │
├──────────────────────┼──────┼─────────┤
│ Laura │ 6 │ 12 │
├──────────────────────┼──────┼─────────┤
│ Sue │ 13 │ 50 │
├──────────────────────┼──────┼─────────┤
│ Richard │ 4 │ 23 │
├──────────────────────┼──────┼─────────┤
│ Christopher │ 1 │ 1 │
└──────────────────────┴──────┴─────────┘
Total: 157 days (1080 commits)
Options
from
Only consider commits after this date. An ISO formatted date passed to moment. e.g.
git-days --from 2015-07-10
to
Only consider commits before this date. An ISO formatted date passed to moment. e.g.
git-days --to 2015-01-01
sort
Sort the table by the specified column. Prefix with "-" to change sort direction to descending. Default is sort by author name, ascending. e.g.
# Sort by commits ascending
git-days --sort commits
# Sort by days descending
git-days --sort=-days
Specify project path(s)
Perhaps your project is split over multiple repos. No problem!
git-days /path/to/project /path/to/related/project/repo
A (╯°□°)╯︵TABLEFLIP side project.