From 7ca518027b14fb67603cf51548027256c8b1fad6 Mon Sep 17 00:00:00 2001 From: David Ward Date: Sat, 14 May 2022 17:35:43 -0400 Subject: [PATCH] tools: Determine starting commit when generating a new ChangeLog file This was still hard-coded to 1.0.28. Detect this automatically instead by finding the most recent release tag. --- tools/create-changelog.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/create-changelog.sh b/tools/create-changelog.sh index 848394007..9c1fb5a94 100755 --- a/tools/create-changelog.sh +++ b/tools/create-changelog.sh @@ -5,13 +5,14 @@ # License: GPL-3.0+ git log --date=iso8601 --no-decorate --topo-order --abbrev=12 \ - 1.0.28..HEAD \ + $(git describe --tags --abbrev=0)..HEAD \ | sed 's/[[:space:]]*$//' \ > ChangeLog cat << EOF >> ChangeLog ---------------------------------------------------------------------- -Older ChangeLog entries can be found in the ChangeLogs/ directory on a -file per release basis. Please note that version 1.0.26 was skipped. +Older entries are located in the ChangeLogs/ directory, which contains +a separate file for each release. (Please note: 1.0.26 and 1.1.0 were +skipped as release numbers.) EOF