Skip to content

Commit 3e8a01c

Browse files
committed
Add changelog.sh script to list per-version relevant commits
1 parent c56f53b commit 3e8a01c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

changelog.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
# Author:Andrey Nikishaev
3+
# Modified: Andrea Baldan
4+
echo "CHANGELOG"
5+
echo ----------------------
6+
git for-each-ref --sort=-taggerdate --format '%(tag)-%(*authordate)' refs/tags \
7+
| grep -P "v[\d+\.]+" \
8+
| while read RES ;
9+
do
10+
IFS='-' read -a arrRES <<< "${RES}"
11+
TAG=${arrRES[0]}
12+
DAT=${arrRES[1]}
13+
echo
14+
if [ $NEXT ];then
15+
echo [$NEXT] - $DAT
16+
else
17+
echo "[Current]" - $DAT
18+
fi
19+
GIT_PAGER=cat git log --no-merges --author="Andrea" --format=" * %s" $TAG..$NEXT
20+
NEXT=$TAG
21+
done
22+
echo

0 commit comments

Comments
 (0)