aboutsummaryrefslogtreecommitdiff
path: root/batch/genChangelog.sh
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-05-24 16:48:22 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-05-25 21:57:14 +0200
commit31c69b6ca1b91e7fd9fd8e14082fd2584c5f538c (patch)
tree16e789c7d68608831b498f41f54d9482b82a711a /batch/genChangelog.sh
first public release
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'batch/genChangelog.sh')
-rwxr-xr-xbatch/genChangelog.sh19
1 files changed, 19 insertions, 0 deletions
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