]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
help tag making with git shortlog hint 12736
authorElan Ruusamäe <glen@delfi.ee>
Wed, 14 May 2014 07:08:23 +0000 (10:08 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 14 May 2014 07:08:23 +0000 (10:08 +0300)
make-tag.sh

index 82067ca6314a989b6c48552f2a46bed42487d7cb..6f54325318f1f26cf9d707ad4c9399298b0e971d 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 set -e
 rev=$(git rev-parse HEAD)
+last_tag=$(git tag -l | grep -E '^[0-9]+' | sort -V | tail -n1)
 
 if [ -n "$1" ]; then
        tag="$1"
@@ -11,9 +12,15 @@ else
        tag=$(($1 + $2))
 fi
 
-echo "Making tag: $tag at revision $rev"
-echo ""
-echo "Press ENTER to continue..."
+cat <<EOF
+Making tag: $tag at revision $rev
+
+You probably want to fill git shortlog from last tag $last_tag as annotated tag message:
+
+  git shortlog $last_tag..HEAD
+
+Press ENTER to continue, Ctrl+C to abort
+EOF
 read a
 
 git tag -a "$tag" $rev
This page took 0.457276 seconds and 4 git commands to generate.