Improve cut_version.sh understanding of old versions.
authorScott Gasch <[email protected]>
Wed, 19 Oct 2022 05:53:39 +0000 (22:53 -0700)
committerScott Gasch <[email protected]>
Wed, 19 Oct 2022 05:53:39 +0000 (22:53 -0700)
cut_version.sh

index 094814dd0067fe26b8345ce4c7470b594581c51c..7e40e9866296b4ad6ebfd38f60b0a5f12d0b767a 100755 (executable)
@@ -43,6 +43,8 @@ fi
 
 VERSION=$1
 PREVIOUS_VERSION=$(git tag --sort=-creatordate | head -1)
+git tag --format='%(creatordate:short)%09%(refname:strip=2)'
+echo
 echo "PREVIOUS_VERSION=${PREVIOUS_VERSION}"
 echo
 if ! ask_y_n "About to cut (build, test, package, give you the command to upload) $VERSION, ok?" "N"; then