Re: Implementing branch attributes in git config

From: Junio C Hamano <junkio@cox.net>
Date: 2006-05-08 19:00:17
Pavel Roskin <proski@gnu.org> writes:

> On Mon, 2006-05-08 at 03:27 +0200, Johannes Schindelin wrote:
>> > Now, how can I get a description for the "netdev" branch by one
>> > git-repo-config command, without pipes?
>> 
>> 	git-repo-config --get branchdata.description ' for netdev$'
>
> No, it doesn't remove "for netdev".  What I really don't like is that
> git-repo-config treats it as "not my problem".

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.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon May 08 19:01:00 2006

This archive was generated by hypermail 2.1.8 : 2006-05-08 19:01:29 EST