From 31c69b6ca1b91e7fd9fd8e14082fd2584c5f538c Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 24 May 2020 16:48:22 +0200 Subject: first public release Signed-off-by: Toni Uhlig --- batch/genChangelog.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 batch/genChangelog.sh (limited to 'batch/genChangelog.sh') diff --git a/batch/genChangelog.sh b/batch/genChangelog.sh new file mode 100755 index 0000000..8388162 --- /dev/null +++ b/batch/genChangelog.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Author: Andrey Nikishaev, Gunnar Lindholm +# From: http://stackoverflow.com/questions/7387612/git-changelog-how-to-get-all-changes-up-to-a-specific-tag +echo "CHANGELOG" +echo ---------------------- +git for-each-ref --sort='*authordate' --format='%(tag)' refs/tags |tac |grep -v '^$' | while read TAG ; do + echo + if [ $NEXT ];then + echo [$NEXT] + else + echo "[Current]" + fi + GIT_PAGER=cat git log --no-merges --format=" * %s" $TAG..$NEXT + NEXT=$TAG +done +FIRST=$(git tag -l | head -1) +echo +echo [$FIRST] +GIT_PAGER=cat git log --no-merges --format=" * %s" $FIRST -- cgit v1.2.3