npm.io
2.0.1 • Published 8 months agoCLI

git-hour

Licence
BSD-2-Clause
Version
2.0.1
Deps
1
Size
20 kB
Vulns
0
Weekly
0
Stars
2

git-hour

Briefly shows how much hours each contributor spent on a git repository

npm Package Version

Usage Without Installation

npx git-hour [options] [directory]

Installation (Optional)

# install with npm
npm i -g git-hour

# or install with pnpm
pnpm i -g git-hour

# ready to use
git-hour [options] [directory]

Usage Options

# run under current git directory
git-hour

# run on specify directory
git-hour ~/workspace/github.com/beenotung/tslib

# show formatted table (Name | Email | Duration)
git-hour --format
git-hour -f ~/workspace/github.com/beenotung/tslib

# show help
git-hour --help
git-hour -h

Todo

  • Allow cli to customize duration of maximum interval between commits in a session and minimum duration before initial commit in the session
  • Use average interval in each session to adjust initial commit
  • Adjust average interval by number of lines changed in the commit

Similar works

  • git-time does not distinct each contributor
  • git-hours does not work with npx (fixed in 1.5.0) depends on the tricky nodegit

Keywords