Check how much you work on weekends
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
sabbath.py

README.md

Sabbath

Check how much you work on weekends.

Script assumes that Monday-Friday are working days and Saturday + Sunday are weekend. We look for a day with any commit activity. Number of commits is ignored. It is up to us to interpret the results.

Usage

$ sabbath.py -h

$ git log --date=short | grep "^Date:" | sabbath.py -s -c
$ git log --date=short --since="2013-01-01" | grep "^Date:" | sabbath.py -s

$ git log --date=short --author=Erkal | grep "^Date:" | sabbath.py -5
$ echo $?

Samples