[projects/geninitrd] help tag making with git shortlog hint

glen glen at pld-linux.org
Wed May 14 09:08:29 CEST 2014


commit 808a8e61b33a9cc9121d67abdc70913735d792ba
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed May 14 10:08:23 2014 +0300

    help tag making with git shortlog hint

 make-tag.sh | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/make-tag.sh b/make-tag.sh
index 82067ca..6f54325 100755
--- a/make-tag.sh
+++ b/make-tag.sh
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/808a8e61b33a9cc9121d67abdc70913735d792ba



More information about the pld-cvs-commit mailing list