Created
March 2, 2013 18:09
-
-
Save ruoso/5072294 to your computer and use it in GitHub Desktop.
write changelog from git
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/bash | |
OLD=HEAD | |
for I in $(git tag | perl -e 'print join "\n", reverse <STDIN>') | |
do | |
if | |
[ "x$OLD" == "x$I" ] | |
then | |
echo "Changelog" | |
else | |
git log -n1 --format="$OLD -- %aD" $OLD | |
git --no-pager log --format=' %h %aN <%aE> %s' $OLD ^$I | |
OLD=$I | |
fi | |
done > Changes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment