1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-09-01 04:14:15 -04:00
gophernicus/git2changelog

21 lines
338 B
Bash
Executable File

#!/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 -r AUTHOR COMMENT; do
[ "$AUTHOR" != "$PREVIOUS" ] && printf "\n$AUTHOR\n\n"
printf "\t* %s\n" "$COMMENT"
PREVIOUS="$AUTHOR"
done
echo
echo