Created
February 1, 2013 16:24
-
-
Save johanneswseitz/4692336 to your computer and use it in GitHub Desktop.
Generates a Changelog from the tags in a Git repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PREVIOUS="HEAD" | |
for TAG in `git tag | grep "\d*.\d*-build-\d*" | sort -r | head` | |
do | |
echo "========================" | |
echo "Changes in $PREVIOUS" | |
echo "========================" | |
CHANGES=`git log $TAG..$PREVIOUS --format=%B | grep "^TF:" | sed 's/TF:/-/g'` | |
if [[ -z $CHANGES ]] | |
then | |
echo "No significant changes" | |
else | |
echo "$CHANGES" | |
fi | |
echo "" | |
PREVIOUS=$TAG | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment