diff options
author | Andrew Murrell <merl@neo.andrewdm.me> | 2017-12-26 08:43:24 +0000 |
---|---|---|
committer | Andrew Murrell <merl@neo.andrewdm.me> | 2017-12-26 08:43:24 +0000 |
commit | bc78567716a106042356053d556f57c1ddc13cfc (patch) | |
tree | 0c008bddb47699a9dcd62cdeb2e7131a137f64ee /bin/auto-changelog | |
parent | db410594baa4bb507aaa23ff98bf8853056b0823 (diff) | |
parent | 50830151e8168b8be0100da349ba7e3576054dc3 (diff) |
Merge branch 'master' of https://git.andrewdm.me/www
Diffstat (limited to 'bin/auto-changelog')
-rwxr-xr-x | bin/auto-changelog | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/auto-changelog b/bin/auto-changelog index 64d15e9..b374fda 100755 --- a/bin/auto-changelog +++ b/bin/auto-changelog @@ -14,11 +14,18 @@ should-insert() { } generate-entry() { - git log -n1 --stat --date='format:%Y-%m-%d' --format=$'## %ad %an <%ae>\n\n%B' | cat -s + git log -n1 --date='format:%Y-%m-%d' --format=$'## %ad %an <%ae>\n\n%B' | cat -s } html_escape() { - sed -e 's/&/\&/g' -e 's/</\</g' -e 's/>/\>/g' -e 's/^ \S/ &/' + sed ' +/^\S/ { + s/&/\&/g + s/</\</g + s/>/\>/g +} +s/^ \S/ &/ +' } insert() { |