Re: [PATCH] name-rev: introduce the --ref-filter=<pattern> option
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 17, 2007, 19:00 UTC
- Message-ID
- <7v3b54txrk.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0702171921130.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 10 quoted lines
> Instead of (or, in addition to) --tags, to use only tags for naming, > you can now use --ref-filter=<patter> to specify a shell pattern > which the refs must match to be used for naming. > > Example: > > $ git name-rev --ref-filter=*v1* 33db5f4d > 33db5f4d tags/v1.0rc1^0~1593 > > Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Thanks. It's a bit counterintuitive that the first asterisk in your example "*v1*" matches something that contains a slash, but at least the patch makes it usable for me.
By the way, v1.0rc1^0~1593 is the same as v1.0rc1~1593. Technically, the latter loses the information that the starting ref is a tag, but I wonder if it is worth keeping that information at the expense of (slightly) uglier output.