summaryrefslogtreecommitdiff
path: root/bin/auto-changelog
diff options
context:
space:
mode:
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() {