Strip useless "tags/" prefix from git-tag -l output
authorSean <seanlkml@sympatico.ca>
Mon, 15 May 2006 00:07:39 +0000 (20:07 -0400)
committerJunio C Hamano <junkio@cox.net>
Mon, 15 May 2006 07:54:31 +0000 (00:54 -0700)
git-tag.sh

index dc6aa95..a0afa25 100755 (executable)
@@ -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)