* Using `git tag -l` to get non-matching tags
@ 2009-11-19 17:49 Tim Visher
2009-11-19 18:18 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Tim Visher @ 2009-11-19 17:49 UTC (permalink / raw)
To: Git Mailing List
Hello Everyone,
I'm trying to use `git tag -l` to get non-matching tags. I can't find
anywhere in the documentation describing what is allowed in the tag
pattern. Brief testing leads me to believe that it's only basic bash
like pattern support.
Thoughts?
--
In Christ,
Timmy V.
http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Using `git tag -l` to get non-matching tags
2009-11-19 17:49 Using `git tag -l` to get non-matching tags Tim Visher
@ 2009-11-19 18:18 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2009-11-19 18:18 UTC (permalink / raw)
To: Tim Visher; +Cc: Git Mailing List
Tim Visher <tim.visher@gmail.com> writes:
> I'm trying to use `git tag -l` to get non-matching tags. I can't find
> anywhere in the documentation describing what is allowed in the tag
> pattern.
As a general guideline, refs are matched using glob not regexp and given
to fnmatch(3).
Who are you in your first sentence?
If you are an end user typing from the terminal trying to list tags
excluding some, the answer would be "piping to 'grep -v'".
If you are writing a tool that uses git, the tool uses a part of tag
namespace for its own use, and the tool is trying to enumerate end-user
tags by excluding the ones it uses for its own use, then the answer would
be "do not use 'git tag' in Porcelain---use 'git for-each-ref' and filter
its output yourself".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-19 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 17:49 Using `git tag -l` to get non-matching tags Tim Visher
2009-11-19 18:18 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox