From: Junio C Hamano <junkio@cox.net>
To: Jeff King <peff@peff.net>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>, git@vger.kernel.org
Subject: Re: [PATCH] name-rev: introduce the --ref-filter=<regex> option
Date: Sat, 17 Feb 2007 10:25:00 -0800 [thread overview]
Message-ID: <7vmz3ctzer.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20070217145921.GA16747@coredump.intra.peff.net> (Jeff King's message of "Sat, 17 Feb 2007 09:59:21 -0500")
Jeff King <peff@peff.net> writes:
> On Sat, Feb 17, 2007 at 03:02:36PM +0100, Johannes Schindelin wrote:
>
>> > Instead of (or, in addition to) --tags, to use only tags for naming,
>> > you can now use --ref-filter=<regex> to specify which refs are
>> > used for naming.
>> >
>> > Example:
>> >
>> > $ git name-rev --ref-filter='/v1' 33db5f4d
>> > 33db5f4d tags/v1.0rc1^0~1593
>>
>> Likes, dislikes?
>
> It's a neat idea, but I wonder if you could make it even more flexible
> by simply accepting a list of possible refs, and then you could filter
> using grep, or your own more complex selection algorithm.
> Unfortunately, --stdin is already taken, but something like:
>
> git show-ref | grep tags/v1.4 | git name-rev --stdin-refs 33db5f4d
FWIW, I like that.
next prev parent reply other threads:[~2007-02-17 18:25 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-27 4:06 finding earliest tags descended from a given commit J. Bruce Fields
2007-01-27 4:22 ` Shawn O. Pearce
2007-01-27 4:34 ` Linus Torvalds
2007-01-27 4:42 ` J. Bruce Fields
2007-01-27 4:55 ` Shawn O. Pearce
2007-01-27 5:23 ` Junio C Hamano
2007-01-27 12:39 ` [PATCH] name-rev: introduce the --ref-filter=<regex> option Johannes Schindelin
2007-02-17 14:02 ` Johannes Schindelin
2007-02-17 14:59 ` Jeff King
2007-02-17 17:50 ` Johannes Schindelin
2007-02-17 18:25 ` Junio C Hamano [this message]
2007-02-17 23:13 ` [PATCH] git-name-rev: accept list of refs from user Jeff King
2007-02-17 23:19 ` Jeff King
2007-02-17 23:30 ` Junio C Hamano
2007-02-17 23:40 ` Jeff King
2007-02-18 0:02 ` Johannes Schindelin
2007-02-17 17:42 ` [PATCH] name-rev: introduce the --ref-filter=<regex> option Junio C Hamano
2007-02-17 18:01 ` Johannes Schindelin
2007-02-17 18:22 ` [PATCH] name-rev: introduce the --ref-filter=<pattern> option Johannes Schindelin
2007-02-17 18:47 ` Junio C Hamano
2007-02-17 23:55 ` Johannes Schindelin
2007-02-17 19:00 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vmz3ctzer.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.