Gitlog Automagical Timesheet Filler Outer Redux
I've been using variations on this script for several years to spit out my git commit log in a timesheet-friendly format:
https://blog.clixel.com/post/111391696763/daily-git-log-for-your-timesheet
I've now refined it to a li'l bash script that has a few extra tricks up its sleeve:
https://gist.github.com/natebeaty/b3edf108434a2d16cc600bd0686e92a8
You set your name in the script, drop it in your ~/bin dir and chmod +x it, then run gitlog from a repo dir with various options:
# Usage: # gitlog = last 8 hours of commits # gitlog 48 = last 48 hours of commits # gitlog 2018-12-20 = all commits on 12/20/2018 # gitlog yesterday = all commits since yesterday # gitlog 1 week ago = all commits since a week ago
Not the most elegant script, could be fancier—but I sure use the hell out of it as-is.







