aboutsummaryrefslogtreecommitdiff
path: root/git-check-tag
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-06-19 21:34:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-06-19 21:34:29 -0300
commitdcaf3e7452025eda2cd2b586535af280d7449638 (patch)
tree94651ab2f54ced456324cbe63e66762ce9b9bc55 /git-check-tag
parent157496a1c1ec5e05a6422e13453aaccc229ff9e5 (diff)
downloadutils-git-dcaf3e7452025eda2cd2b586535af280d7449638.tar.gz
utils-git-dcaf3e7452025eda2cd2b586535af280d7449638.tar.bz2
Adds git-check-tag
Diffstat (limited to 'git-check-tag')
-rwxr-xr-xgit-check-tag13
1 files changed, 13 insertions, 0 deletions
diff --git a/git-check-tag b/git-check-tag
new file mode 100755
index 0000000..99d67da
--- /dev/null
+++ b/git-check-tag
@@ -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