From: Junio C Hamano Date: Sat, 17 Feb 2007 19:00:31 GMT Subject: Re: [PATCH] name-rev: introduce the --ref-filter= option Message-ID: <7v3b54txrk.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > Instead of (or, in addition to) --tags, to use only tags for naming, > you can now use --ref-filter= 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 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.