View source: R/git_timesheet.R
git_timesheet | R Documentation |
Identify work streaks from Git history
git_timesheet(dir = ".", threshold = 75)
dir |
path to Git repo |
threshold |
number of minutes. Commits further apart than |
For every commit the function estimates the "commit time" which is the amount of time spent working towards that commit. Current approach is rather naive:
Break the data into streaks using threshold
For every streak:
All but first commit get commit time equal to the time difference from the previous commit.
For the first commit the commit time is the mean of all commits in the streak.
For streaks of length one the commit time is the mean of all commit times for the repo.
Tibble with columns:
streak
- Streak ID
from
- Date-time, start of the work streak
to
- Date-time, end of the work streak
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.