]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Adds git-check-tag
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 20 Jun 2015 00:34:29 +0000 (21:34 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 20 Jun 2015 00:34:29 +0000 (21:34 -0300)
git-check-tag [new file with mode: 0755]

diff --git a/git-check-tag b/git-check-tag
new file mode 100755 (executable)
index 0000000..99d67da
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# Check the latest tag.
+#
+
+# Parameters
+BASENAME="`basename $0`"
+
+# Get the latest tag
+tag="`git describe --abbrev=0 --tags`"
+
+# Check it
+git tag -v $tag