Skip to content

Instantly share code, notes, and snippets.

@ruoso
Created March 2, 2013 18:09
Show Gist options
  • Save ruoso/5072294 to your computer and use it in GitHub Desktop.
Save ruoso/5072294 to your computer and use it in GitHub Desktop.
write changelog from git
#!/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