summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-15 00:55:31 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-15 00:55:31 -0700
commitcee1b9549b4ffd7c98060555c6c98520827877e7 (patch)
tree1dcda1d4dfa8744ad3c43d23d492f819b09e9c2e
parentMerge branch 'jc/grep' into next (diff)
parentStrip useless "tags/" prefix from git-tag -l output (diff)
downloadtgif-cee1b9549b4ffd7c98060555c6c98520827877e7.tar.xz
Merge branch 'se/tag' into next
* 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 dc6aa95767..a0afa25821 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)