On Sun, 14 May 2006 16:24:57 -0700 Junio C Hamano <junkio@xxxxxxx> wrote: > I do not have problem with that, but somebody else's script > might; Cogito seems not to mind. > > Something like this perhaps? That looks good. If you accept the rev-parse patch, then i'd suggest the patch below instead. Sean diff --git a/git-tag.sh b/git-tag.sh index dc6aa95..a0afa25 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) - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html