From: Pierre Habouzit Date: Fri, 21 Dec 2007 21:22:13 GMT Subject: Re: [PATCH] git-describe: Add a --match option to limit considered tags. 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 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