Created
October 1, 2012 08:44
-
-
Save olim7t/3810376 to your computer and use it in GitHub Desktop.
git-standup: find out what you did yesterday (or last friday)
This file contains 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/bash | |
# git-standup: find out what you did yesterday (or last friday). | |
# | |
# Setup: | |
# 1. Change AUTHOR if your git user doesn't match your unix account. | |
# 2. Save somewhere on your path, make executable. | |
# 3. git config --global alias.standup '!git-standup' | |
# 4. Profit. | |
# | |
# Original idea via @paulgreg (https://twitter.com/paulgreg/status/248686055727972352) | |
AUTHOR=$USER | |
if [ `date +%w` == 1 ] ; then | |
LIMIT="3 days" | |
else | |
LIMIT="yesterday" | |
fi | |
git log --since "$LIMIT" --oneline --author $AUTHOR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can also set author to the configured git user: