Skip to content

Instantly share code, notes, and snippets.

@Blucknote
Forked from hannu/gist:4604611
Last active June 26, 2020 14:25
Show Gist options
  • Save Blucknote/813ec1fdc579f45535e8ec12bbd0cc62 to your computer and use it in GitHub Desktop.
Save Blucknote/813ec1fdc579f45535e8ec12bbd0cc62 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 --format="%cd" --date=short --no-merges --author="$AUTHOR" --all --after="2020-06-14" --until="2020-06-20" | sort -u -r | while read DATE ; do
if [ $NEXT != "" ]
then
echo
echo [$NEXT]
fi
GIT_PAGER=cat git log --no-merges --format=" %s" --since=$DATE --until=$NEXT --author="$AUTHOR" --all
NEXT=$DATE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment