Created
November 30, 2010 18:07
-
-
Save leonid-shevtsov/722095 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# More correct version in ruby: https://gist.github.com/725094 | |
# Instant timesheet - straight from yo git log! | |
# ...now with commit times as well | |
git log --committer=`git config --get user.email` --format="%ad %s" --simplify-merges --date=iso --since="1 week ago" --reverse | uniq -w 11 --all-repeated=prepend | sed "s/^\(.\{11\}\)\(.\{5\}\).\{9\}/\1\2/" | sed "s/^$//;ta;s/^.\{11\}//;bend;:a;n;s/ /\\n===========\\n\\n/;:end" |grep -iv "merge branch" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice