Skip to content

Commit

Permalink
Merge pull request #36 from huksley/master
Browse files Browse the repository at this point in the history
Added options: different git path, exclude merge requests, email aliases
  • Loading branch information
kimmobrunfeldt authored Oct 22, 2018
2 parents fb76ed3 + b89b1f0 commit 4ebb490
Show file tree
Hide file tree
Showing 4 changed files with 3,734 additions and 14 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ In root of a git repository run:

Help

Usage: githours [options]
Usage: git hours [options]

Options:

Expand All @@ -100,6 +100,11 @@ Help
-d, --max-commit-diff [max-commit-diff] maximum difference in minutes between commits counted to one session. Default: 120
-a, --first-commit-add [first-commit-add] how many minutes first commit of session should add to total. Default: 120
-s, --since [since-certain-date] Analyze data since certain date. [always|yesterday|tonight|lastweek|yyyy-mm-dd] Default: always'
-e, --email [emailOther=emailMain] Group person by email address. Default: none
-u, --until [until-certain-date] Analyze data until certain date. [always|yesterday|today|lastweek|thisweek|yyyy-mm-dd] Default: always
-m, --merge-request [false|true] Include merge requests into calculation. Default: true
-p, --path [git-repo] Git repository to analyze. Default: .
-b, --branch [branch-name] Analyze only data on the specified branch. Default: all branches

Examples:

Expand All @@ -122,6 +127,10 @@ Help
- Estimate hours work in repository since 2015-01-31

$ git hours --since 2015-01-31
- Estimate hours work in repository on the "master" branch

$ git hours --branch master

For more details, visit https://github.com/kimmobrunfeldt/git-hours

Expand Down
Loading

0 comments on commit 4ebb490

Please sign in to comment.