Skip to content

Instantly share code, notes, and snippets.

@bpedro
Last active December 14, 2015 21:38
Show Gist options
  • Save bpedro/5152204 to your computer and use it in GitHub Desktop.
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.
#!/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
@viktors
Copy link

viktors commented Mar 13, 2013

--author="$1" would be more correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment