1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-10-27 05:20:18 -04:00

Small fix for git2changelog so that it keeps \ and / in comments

This commit is contained in:
Kim Holviala 2016-12-11 10:58:24 +02:00
parent fd9a23b5bc
commit 454ec533bb

View File

@ -5,14 +5,14 @@
## ##
PREVIOUS= PREVIOUS=
IFS=/ IFS=\;
echo "[ Automatically generated from git log ]" echo "[ Automatically generated from git log ]"
git log --pretty=tformat:"%ad %an <%ae>/%s" --date=short | \ git log --pretty=tformat:"%ad %an <%ae>;%s" --date=short | \
while read AUTHOR COMMENT; do while read -r AUTHOR COMMENT; do
[ "$AUTHOR" != "$PREVIOUS" ] && printf "\n$AUTHOR\n\n" [ "$AUTHOR" != "$PREVIOUS" ] && printf "\n$AUTHOR\n\n"
printf "\t* $COMMENT\n" printf "\t* %s\n" "$COMMENT"
PREVIOUS="$AUTHOR" PREVIOUS="$AUTHOR"
done done