Files
dotfiles/bin/changelog
2019-01-12 18:22:02 +01:00

19 lines
370 B
Bash
Executable File

#!/bin/bash
echo ""
echo "CHANGELOG"
git tag -l | sort -u -r | 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