Re: Implementing branch attributes in git config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mon, 8 May 2006, Junio C Hamano wrote:
> 
> You dodged my comments on the SQL-like queries ;-).  I was half
> (perhaps 3/4) joking, but some people actually might like to be
> able to say:
> 
> 	git repo-config --get-all branch.name where url like 'git://%'

I think databases tend to be a huge mistake. Show me a SQL database where 
users can edit the data by hand, and it's all readable, and maybe I'll 
change my mind.

The monotone guys have almost everything in a database, and from what I 
can tell it results in (a) you can do some really funky queries and (b) 
it's confusing and slow as hell.

Now, the speed issue doesn't matter for a config file, but there the 
editability very much does.

> Oops, by the way, why does a [branch] have url as its attribute?
> I think this was a bad example -- we are talking about [remote]
> here.  But the main point is about syntax, so that is OK.

Yeah, "remote" is clearly better than "url".

> I am reluctant to buy that argument (I see it is an easy way
> from the implementation point of view) -- it appears to me that
> it would invite this easy user error.
> 
> 	[branch]
>         	name = linus
>         	url = git://git.kernel.org/../torvalds/linux-2.6
> 
> 	[branch]
>         	url = git://git.kernel.org/../jgarzik/libata-dev
>         	name = libata

Yes, that would be a silent and confusing error.

		Linus
-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]