mirror of
https://github.com/gophernicus/gophernicus.git
synced 2024-10-27 05:20:18 -04:00
21 lines
329 B
Plaintext
21 lines
329 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
##
|
||
|
## Generate ChangeLog from git log
|
||
|
##
|
||
|
|
||
|
PREVIOUS=
|
||
|
IFS=/
|
||
|
|
||
|
echo "[ Automatically generated from git log ]"
|
||
|
|
||
|
git log --pretty=tformat:"%ad %an <%ae>/%s" --date=short | \
|
||
|
while read AUTHOR COMMENT; do
|
||
|
[ "$AUTHOR" != "$PREVIOUS" ] && printf "\n$AUTHOR\n\n"
|
||
|
printf "\t* $COMMENT\n"
|
||
|
PREVIOUS="$AUTHOR"
|
||
|
done
|
||
|
|
||
|
echo
|
||
|
echo
|