Skip to content

Instantly share code, notes, and snippets.

@chadb
Created February 11, 2014 20:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadb/8943613 to your computer and use it in GitHub Desktop.
Save chadb/8943613 to your computer and use it in GitHub Desktop.
Git what did I do lastweek?
alias lastweek='git log --author="`git config user.name`" --pretty=format:"%cd %h %s" --date=short --after={`chronic monday of last week`} --before={`chronic last sunday`}'
#!/usr/bin/env ruby
require 'chronic'
print Chronic.parse(ARGV.join(' ')).strftime( "%Y-%m-%d" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment