Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Strip useless "tags/" prefix from git-tag -l output
author
Sean
<seanlkml@sympatico.ca>
Mon, 15 May 2006 00:07:39 +0000
(20:07 -0400)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 15 May 2006 07:54:31 +0000
(
00:54
-0700)
git-tag.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
a62be77
)
diff --git
a/git-tag.sh
b/git-tag.sh
index dc6aa9576764d7c2da98fbe15339df685fd8b94c..a0afa25821b5438f41abfed3a2f27bd22767c3d6 100755
(executable)
--- a/
git-tag.sh
+++ b/
git-tag.sh
@@
-25,14
+25,12
@@
do
force=1
;;
-l)
force=1
;;
-l)
- cd "$GIT_DIR/refs" &&
case "$#" in
1)
case "$#" in
1)
- find tags -type f -print ;;
- *)
- shift
- find tags -type f -print | grep "$@" ;;
+ set x . ;;
esac
esac
+ shift
+ git rev-parse --symbolic --tags | sort | grep "$@"
exit $?
;;
-m)
exit $?
;;
-m)