From: Pavel Roskin Date: Mon, 08 May 2006 15:15:45 GMT Subject: Re: Implementing branch attributes in git config Message-ID: <1147101345.27362.15.camel@dv> In-Reply-To: <7vody8howu.fsf@assigned-by-dhcp.cox.net> On Mon, 2006-05-08 at 02:00 -0700, Junio C Hamano wrote: > Stating what you do not like about something is a good first > step to improve that something. It should not be too hard to > extend the parser to grok: > > repo-config --get branchdata.description '\(.*\) for netdev$' > > and when the value_regex has a capture return what matches > instead of the entire value. I think that would do what you > want. OK, that would be acceptable. I still don't like the "for" conversion because it masquerades syntax (note that text to right of "for" must be unique) as plain text, but it's a matter of taste, so it's hard for me to argue about it. -- Regards, Pavel Roskin