mirror of
https://github.com/tj/git-extras.git
synced 2026-09-11 07:56:18 -04:00
Fix changelog formatting for large version numbers
This allows for version numbers which require more than 18 characters to be underlined and pretty. :)
This commit is contained in:
parent
e91da7c2b4
commit
fde9d1cd30
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue