aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean <seanlkml@sympatico.ca>2006-05-14 20:07:39 -0400
committerJunio C Hamano <junkio@cox.net>2006-05-15 00:54:31 -0700
commite6ebb8a3fbef10f50a3f4fe346d3bb47fe8ce07b (patch)
treeba57dc9ae890d8559544407874016875fb0f368f
parenta62be77f5ebdbbd46d6956dc4d07571835588389 (diff)
downloadgit-e6ebb8a3fbef10f50a3f4fe346d3bb47fe8ce07b.tar.gz
git-e6ebb8a3fbef10f50a3f4fe346d3bb47fe8ce07b.tar.xz
Strip useless "tags/" prefix from git-tag -l output
-rwxr-xr-xgit-tag.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/git-tag.sh b/git-tag.sh
index dc6aa9576..a0afa2582 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)