summaryrefslogtreecommitdiff
path: root/git-tag.sh
diff options
context:
space:
mode:
authorSean <seanlkml@sympatico.ca>2006-05-15 00:07:39 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-15 07:54:31 (GMT)
commite6ebb8a3fbef10f50a3f4fe346d3bb47fe8ce07b (patch)
treeba57dc9ae890d8559544407874016875fb0f368f /git-tag.sh
parenta62be77f5ebdbbd46d6956dc4d07571835588389 (diff)
downloadgit-e6ebb8a3fbef10f50a3f4fe346d3bb47fe8ce07b.zip
git-e6ebb8a3fbef10f50a3f4fe346d3bb47fe8ce07b.tar.gz
git-e6ebb8a3fbef10f50a3f4fe346d3bb47fe8ce07b.tar.bz2
Strip useless "tags/" prefix from git-tag -l output
Diffstat (limited to 'git-tag.sh')
-rwxr-xr-xgit-tag.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/git-tag.sh b/git-tag.sh
index dc6aa95..a0afa25 100755
--- a/git-tag.sh
+++ b/git-tag.sh
@@ -25,14 +25,12 @@ do
force=1
;;
-l)
- cd "$GIT_DIR/refs" &&
case "$#" in
1)
- find tags -type f -print ;;
- *)
- shift
- find tags -type f -print | grep "$@" ;;
+ set x . ;;
esac
+ shift
+ git rev-parse --symbolic --tags | sort | grep "$@"
exit $?
;;
-m)