Skip to content

Instantly share code, notes, and snippets.

@skymarionsky
Forked from hannu/gist:4604611
Last active January 7, 2016 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skymarionsky/bee7274b5d94fa604d76 to your computer and use it in GitHub Desktop.
Save skymarionsky/bee7274b5d94fa604d76 to your computer and use it in GitHub Desktop.
Filter your own commit messages from git log and group by day. (Modified from http://stackoverflow.com/questions/2976665/git-changelog-day-by-day)
#!/bin/bash
AUTHOR=$(git config user.name)
DATE=$(date +%F)
git log --no-merges --format="%cd" --date=short --no-merges --author="$AUTHOR" --all | sort -u | while read DATE ; do
if [ $DATE != "" ]
then
echo
echo [$DATE]
fi
GIT_PAGER=cat git log --no-merges --format=" %s" --since="${DATE} 00:00:00" --until="${DATE} 23:59:59" --author="$AUTHOR" --all
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment