@matheusbsbs / matheus-bagliano / commits / e6ebb8a3fb
Fork 0

Strip useless "tags/" prefix from git-tag -l output

Sean committed May 14, 2006 at 20:07 UTC e6ebb8a3fbef10f50a3f4fe346d3bb47fe8ce07b
1 file changed +3 -5
git-tag.sh
+3 -5
@@ -25,14 +25,12 @@ do
25 force=1
26 ;;
27 -l)
28 - cd "$GIT_DIR/refs" &&
28 case "$#" in
29 1)
31 - find tags -type f -print ;;
32 - *)
33 - shift
34 - find tags -type f -print | grep "$@" ;;
30 + set x . ;;
31 esac
32 + shift
33 + git rev-parse --symbolic --tags | sort | grep "$@"
34 exit $?
35 ;;
36 -m)