Skip to content

Commit

Permalink
Fix changelog formatting for large version numbers
Browse files Browse the repository at this point in the history
This allows for version numbers which require more than 18 characters to
be underlined and pretty. :)
  • Loading branch information
Stephen Mathieson committed Feb 24, 2014
1 parent e91da7c commit fde9d1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/git-changelog
Expand Up @@ -25,7 +25,9 @@ while [ "$1" != "" ]; do
done

DATE=`date +'%Y-%m-%d'`
HEAD="\n$TAG / $DATE\n==================\n\n"
HEAD="\n$TAG / $DATE\n"
for i in $(seq 5 ${#HEAD}); do HEAD="$HEAD="; done
HEAD="$HEAD\n\n"

if $LIST; then
version=$(git describe --tags --abbrev=0 $(git rev-list --tags --max-count=1))
Expand Down

0 comments on commit fde9d1c

Please sign in to comment.