Created
February 11, 2014 20:39
-
-
Save chadb/8943613 to your computer and use it in GitHub Desktop.
Git what did I do lastweek?
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
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`}' |
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
#!/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