git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC PATCH 1/1] git-tag: Add --regex option

From
Jake Goulding <goulding@vivisimo.com>
Date
Feb 4, 2009, 14:16 UTC
Message-ID
<4989A34C.4080104@vivisimo.com>
In-Reply-To
<7vljsm3aow.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
Show 7 quoted lines
> Jake Goulding <goulding@vivisimo.com> writes:
> 
>> Allows the tag pattern to be expressed as a regular expression.
> 
> We use shell globs for refname throughout the system (not just tags).  Why
> is this a good thing, other than "because we can"?
> 
I'll give the particular use-case that we are using it for:

In preparation for a release, we have a nightly tagging/building process. We start by tagging something as 1.0.0-build1. We then do that series for a while, then decide it is time to shift to a more thorough QA cycle. We branch a QA branch, then start tagging at 1.0-0-rc1. Eventually, a rc passes all QA tests and we tag that rc again as 1.0-0.

Thus, our tags look like something of the form:

1.0.0-build1 1.0.0-rc1 1.0.0

As we fix bugs, a hook automatically adds the commit hash is as a comment to the appropriate bugzilla bug.

We whipped up a dinky little web application that takes a hash and a branch, and shows which tags contain that particular hash (which is the reason for my previous commit for --contains support in git tag). We hacked bugzilla to match on git hashes, and provide a link to this webapp.

I wanted to be able to limit the search space to (builds, rcs, releases), but globs don't allow that amount of flexibility.

Is that a complete enough description for a rational use-case?
-Jake
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “git-tag: Add --regex option”
  1. 1/1 git-tag: Add --regex optionJake Goulding, Feb 3, 2009
  2. Junio C HamanoFeb 4, 2009
  3. Jake GouldingFeb 4, 2009
  4. Junio C HamanoFeb 4, 2009
  5. Jake GouldingFeb 4, 2009
  6. Junio C HamanoFeb 4, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.