Created
September 20, 2012 16:04
-
-
Save tinifni/3756796 to your computer and use it in GitHub Desktop.
Remember what you've done since your last standup
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
# zsh script checks first if there were any commits done | |
# by author yesterday. If there were, return those. If | |
# there weren't, look for all commits since last Friday | |
# at midnight as it may have been a weekend. | |
# | |
# Use your name in the --author for all commands | |
gitstandup() { | |
if [ -z "$(git log --all --pretty=format:'* %s' --no-merges --reverse --author=Justin --since=yesterday.midnight)" ]; then | |
git log --all --pretty=format:'* %s' --no-merges --reverse --author=Justin --since=last.friday.midnight; | |
else | |
git log --all --pretty=format:'* %s' --no-merges --reverse --author=Justin --since=yesterday.midnight; | |
fi | |
} | |
alias gtsu='gitstandup' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome script!
I made a variation here: https://gist.github.com/ConorSheehan1/f6da062b536c633622e1aa438aa64593
Changes:
git config user.email
$@