1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-16 06:25:23 +00: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=
IFS=/
IFS=\;
echo "[ Automatically generated from git log ]"
git log --pretty=tformat:"%ad %an <%ae>/%s" --date=short | \
while read AUTHOR COMMENT; do
git log --pretty=tformat:"%ad %an <%ae>;%s" --date=short | \
while read -r AUTHOR COMMENT; do
[ "$AUTHOR" != "$PREVIOUS" ] && printf "\n$AUTHOR\n\n"
printf "\t* $COMMENT\n"
printf "\t* %s\n" "$COMMENT"
PREVIOUS="$AUTHOR"
done