The process runs a git log command and then analyzes the results, of your commits. The default is the current fit user. For more information see options.
Calculating work sessions
Two settings are used to calculate the session from the logs:
- max-diff-for-session - maximum difference in minutes between commits counted to one session. Default: 120
- min-session = how many minutes the first commit of a session should add to total. Default: 30
Imaging this is your work day, and the circles represent the commits over time:
The calculation is like this:
- We check the time differences between commits:
- If the diffrence is less than the value of max-diff-for-session, than the commits are grouped to one work session. If the difference is greater, than they are on different session.
- Each work session is added with the min-session value, to represent the time spent before the first commit.
- Work sessions that are on the same date are grouped together to form a work day:
Result
The work days are concluded in a table ike this:
| Day | Hours | Details |
|---|---|---|
| 20.1 | 5 | First commit message; second commit; |
| 21.1 | 4 | MyBranch_name#1; Mybranch_Name#2 |
| 23.3 | 7 | Featurebranch#114 |
The table contains a summary for all days, for each month, and total. The months are arranged by year.
Details
The detail column contains only partial information received from the git log:
- branch names if are any (until a certain limit of characters per day)\
- commit messages (until a certain limit of characters per day)