Last active
December 14, 2015 21:38
-
-
Save bpedro/5152204 to your computer and use it in GitHub Desktop.
Find *yesterday*'s git entries from <username>. Useful for generating sprint daily meetings notes.
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
#!/bin/sh | |
if [ "$#" -eq 0 ]; then | |
echo "" | |
echo "Find yesterday's git entries from <username>" | |
echo "" | |
echo "Usage:" | |
echo "git_log_user.sh <username>" | |
echo "" | |
else | |
git log --pretty=format:"%ai: %s" --no-merges --since=`date --date="yesterday" "+%Y-%m-%d"` --author=$1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--author="$1" would be more correct.