Skip to content

Commit

Permalink
Add changelog.sh script to list per-version relevant commits
Browse files Browse the repository at this point in the history
  • Loading branch information
codepr committed Jan 13, 2020
1 parent c56f53b commit 3e8a01c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# Author:Andrey Nikishaev
# Modified: Andrea Baldan
echo "CHANGELOG"
echo ----------------------
git for-each-ref --sort=-taggerdate --format '%(tag)-%(*authordate)' refs/tags \
| grep -P "v[\d+\.]+" \
| while read RES ;
do
IFS='-' read -a arrRES <<< "${RES}"
TAG=${arrRES[0]}
DAT=${arrRES[1]}
echo
if [ $NEXT ];then
echo [$NEXT] - $DAT
else
echo "[Current]" - $DAT
fi
GIT_PAGER=cat git log --no-merges --author="Andrea" --format=" * %s" $TAG..$NEXT
NEXT=$TAG
done
echo

0 comments on commit 3e8a01c

Please sign in to comment.