diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-15 00:55:31 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-15 00:55:31 -0700 |
commit | cee1b9549b4ffd7c98060555c6c98520827877e7 (patch) | |
tree | 1dcda1d4dfa8744ad3c43d23d492f819b09e9c2e | |
parent | Merge branch 'jc/grep' into next (diff) | |
parent | Strip useless "tags/" prefix from git-tag -l output (diff) | |
download | tgif-cee1b9549b4ffd7c98060555c6c98520827877e7.tar.xz |
Merge branch 'se/tag' into next
* se/tag:
Strip useless "tags/" prefix from git-tag -l output
-rwxr-xr-x | git-tag.sh | 8 |
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) |