Re: [PATCH] git-name-rev: accept list of refs from user
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 18, 2007, 00:02 UTC
- Message-ID
- <Pine.LNX.4.63.0702180101030.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20070217234046.GB6014@coredump.intra.peff.net>
Hi,
On Sat, 17 Feb 2007, Jeff King wrote:
Show 10 quoted lines
> On Sat, Feb 17, 2007 at 03:30:02PM -0800, Junio C Hamano wrote: > > > I was hoping that everybody would be happy once Johannes's patch > > is extended to grok more than one --refs=<pattern> options. > > I don't think just having text filters easily allows something like: > > git show-ref | > perl -ne 'print if m#tags/v1\.(\d+)# && $1 > 3' | > git name-rev --refs-from=- $commit
Does
git name-rev --refs='*v1.[4-]*' $commit
what you are trying to achieve?
However, another use case could be where you do not want to tag a certain commit, but want to label it with a certin name just for this call to name-rev. But I don't know how useful that is.
Ciao, Dscho