Skip to content

Instantly share code, notes, and snippets.

@leonid-shevtsov
Created November 30, 2010 18:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonid-shevtsov/722095 to your computer and use it in GitHub Desktop.
Save leonid-shevtsov/722095 to your computer and use it in GitHub Desktop.
#!/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"
@bogdan
Copy link

bogdan commented Dec 2, 2010

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment