command
module
Version:
v0.0.0-...-4f80b1c
Opens a new window with list of versions in this module.
Published: Jan 2, 2019
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gitcount
A command-line tool to estimate the time spent on a git project, based on a very simple heuristic, inspired by kimmobrunfeldt/git-hours.
Assumptions:
- Commits with a time difference less than 2 hours are considered to be in one coding session
- A multiple (x3) of the average time between commits in all sessions is added to the very first commit of every session
Example
$ gitcount -dir .
Project root: /home/ferdinand/dev/mininote
mail@ferdinand-muetsch.de: 13.06 hours
exorcismo@gmail.com: 0.95 hours
noreply@github.com: 3.80 hours
btbtravis@gmail.com: 1.11 hours
kiantrue@gmail.com: 0.95 hours
fmuetsch@inovex.de: 0.00 hours
---------
Total: 19.86 hours
Example using Docker
$ docker run --rm -it -v `pwd`:/repo gitcount/gitcount:0.0.2
Project root: /repo
mail@ferdinand-muetsch.de: 1.73 hours
noreply@github.com: 0.65 hours
u5.horie@gmail.com: 0.65 hours
---------
Total: 3.03 hours
Requirements
How to use?
go get github.com/n1try/gitcount
gitcount
or gitcount -dir /some/project/path
License
MIT @ Ferdinand Mütsch
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.