Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use alternative markdown heading to make output look nicer if not par…

…sed as markdown
  • Loading branch information...
commit 2a3992b5b319f86913677d8a9def5c6a18a634ff 1 parent 8b9358d
@TheHippo authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 git-create-changelog.sh
View
6 git-create-changelog.sh
@@ -8,7 +8,8 @@ if test -d ".git"; then
# yes we are in a git repository
# clear old changelog
- echo "# Changelog" > Changelog
+ echo "Changelog" > Changelog
+ echo "=========" >> Changelog
echo "" >> Changelog
#find first commit
@@ -22,7 +23,8 @@ if test -d ".git"; then
for i in "${TAGS[@]}"; do
# for each commit
echo "" >> Changelog
- echo "## $i" >> Changelog
+ echo "$i" >> Changelog
+ echo "--------" >> Changelog
echo "" >> Changelog
git log $LAST...$i --pretty=format:' - %h %s (%an <%ae>)' --reverse | grep -v 'Merge branch' >> Changelog
LAST=$i
Please sign in to comment.
Something went wrong with that request. Please try again.