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

Re: [PATCH] git-describe: Add a --match option to limit considered tags.

From
Pierre Habouzit <madcoder@debian.org>
Date
Dec 21, 2007, 21:22 UTC
Message-ID
<20071221212212.GB10318@artemis.madism.org>
In-Reply-To
<7v7ij87x5u.fsf@gitster.siamese.dyndns.org>
On Fri, Dec 21, 2007 at 05:52:29PM +0000, Junio C Hamano wrote:
> Does it work with "describe --contains" as well?
  I think so, the idea here is that I give prio "0" to tags that don't
match, which unless you pass --all (which basically conflicts with
--match <foo> anyways) means that those are not added to the list of
tags that are considered. So I don't see why it would fail with
--contains.
  That's a patch we "need" at work because we have a repository with
different products that share a _lot_ of code (and we're not confident
with submodules yet to switch) and we use git-describe to embed the
exact version of the code that was shipped to a client. Though it sucks
when the last tag shows another product name :)
  I'd also like to use it in some scripts of mine for debian packaging
where I have quite a lot of private tags and only want to describe tags
that match 'debian-sid*'
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
Previous: Junio C HamanoNext: Pierre Habouzit
Message 3 of 7 in “git-describe: Add a --match option to limit considered tags.”
  1. git-describe: Add a --match option to limit considered tags.Pierre Habouzit, Dec 21, 2007
  2. Junio C HamanoDec 21, 2007
  3. Pierre HabouzitDec 21, 2007
  4. git-describe: Add a --match option to limit considered tags.Pierre Habouzit, Dec 21, 2007
  5. Pierre HabouzitDec 22, 2007
  6. Pierre HabouzitDec 24, 2007
  7. Pierre HabouzitDec 24, 2007

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.