From: Sean Date: Mon, 15 May 2006 00:07:39 +0000 (-0400) Subject: Strip useless "tags/" prefix from git-tag -l output X-Git-Tag: v1.4.0-rc1~134^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e6ebb8a3fbef10f50a3f4fe346d3bb47fe8ce07b;p=git.git Strip useless "tags/" prefix from git-tag -l output --- diff --git a/git-tag.sh b/git-tag.sh index dc6aa957..a0afa258 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)