summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-06-30 13:24:20 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-06-30 13:24:31 +0200
commitf1ad4500335cdec4e3ed4f4c8b99130ad70637ea (patch)
treeaa992463aee1ef3ad41fcd51b9236fe6783ca55e
parent6b8c236b673dcd20e422f69ddb05a6736cf05bf3 (diff)
Rewrite changelog generator scriptminormaster-ff
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--scripts/gen-changelog42
1 files changed, 36 insertions, 6 deletions
diff --git a/scripts/gen-changelog b/scripts/gen-changelog
index 67d2419..24986ac 100644
--- a/scripts/gen-changelog
+++ b/scripts/gen-changelog
@@ -7,10 +7,40 @@ if [[ -z "$since" ]]; then
exit 1
fi
-for rev in $(git rev-list "$since"..HEAD | tac); do
- if git notes --ref=changelog list $rev &> /dev/null; then
- output=$(git notes --ref=changelog show $rev | sed '2,$s/^/ /')
- echo "* [$(echo ${rev:0:10})] $output"
- fi
-done
+export GIT_PAGER=
+
+do_log() {
+ git log "$since"..HEAD --first-parent --oneline "$@"
+}
+
+echo " ### Major changes"
+echo ""
+ do_log \
+ --merges \
+ --format="* (%h) %s"
+echo ""
+echo ""
+
+echo " ### Fixes"
+echo ""
+ do_log \
+ --grep Fix \
+ --format="* (%h) %s"
+echo ""
+echo ""
+
+
+echo " ### Other "
+echo ""
+ do_log \
+ --no-merges \
+ --grep Fix \
+ --invert-grep \
+ --format="* (%h) %s"
+echo ""
+echo ""
+
+echo "Thanks to all contributors:"
+# do not thank myself...
+do_log --format="* %an" | sort -u | grep -v "Matthias Beyer"