summaryrefslogtreecommitdiff
path: root/bin/auto-changelog
diff options
context:
space:
mode:
authorAndrew Murrell <merl@neo.andrewdm.me>2017-12-26 08:43:24 +0000
committerAndrew Murrell <merl@neo.andrewdm.me>2017-12-26 08:43:24 +0000
commitbc78567716a106042356053d556f57c1ddc13cfc (patch)
tree0c008bddb47699a9dcd62cdeb2e7131a137f64ee /bin/auto-changelog
parentdb410594baa4bb507aaa23ff98bf8853056b0823 (diff)
parent50830151e8168b8be0100da349ba7e3576054dc3 (diff)
Merge branch 'master' of https://git.andrewdm.me/www
Diffstat (limited to 'bin/auto-changelog')
-rwxr-xr-xbin/auto-changelog11
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/&/\&amp;/g' -e 's/</\&lt;/g' -e 's/>/\&gt;/g' -e 's/^ \S/ &/'
+ sed '
+/^\S/ {
+ s/&/\&amp;/g
+ s/</\&lt;/g
+ s/>/\&gt;/g
+}
+s/^ \S/ &/
+'
}
insert() {