-
-
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)
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 | |
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