aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-15 23:43:27 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-15 23:43:27 -0700
commit94cdb382583e7c87d949fb22754d795a1b956377 (patch)
treed5417c40c290380774135ed8a14f32c4dd680d14
parent3aece89fa24ff38afc9f5a30bc4f8f15e91f4cd7 (diff)
parente6ebb8a3fbef10f50a3f4fe346d3bb47fe8ce07b (diff)
downloadgit-94cdb382583e7c87d949fb22754d795a1b956377.tar.gz
git-94cdb382583e7c87d949fb22754d795a1b956377.tar.xz
Merge branch 'se/tag'
* se/tag: 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)