mirror of
https://github.com/gophernicus/gophernicus.git
synced 2025-01-03 14:56:43 -05:00
Small fix for git2changelog so that it keeps \ and / in comments
This commit is contained in:
parent
fd9a23b5bc
commit
454ec533bb
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user