From: Josef Weidendorfer Date: Tue, 22 Nov 2005 17:31:03 GMT Subject: Re: Get rid of .git/branches/ and .git/remotes/? Message-ID: <200511221831.03954.Josef.Weidendorfer@gmx.de> In-Reply-To: <200511210026.30280.Josef.Weidendorfer@gmx.de> On Monday 21 November 2005 00:26, Josef Weidendorfer wrote: > On Sunday 20 November 2005 19:09, Linus Torvalds wrote: > > [branches.origin] > > url = master.kernel.org:/pub/scm/git/git.git > > pull = master:origin > > Two things: > * base names are case insensitive. Repository shortcuts are case > sensitive (and head names, too) > * to get rid of .git/branches/XXX, XXX has to be allowed as > base name. But XXX can contain anything a head name can (including "."). > > Not really a problem. Use the ' for ' syntax: > > [remotes] > url = master.kernel.org:/pub/scm/git/git.git for origin > pull = master:origin for origin > > Not really nice. We can not have "for" as head name. What about another syntax for multivalue vars? Proposed syntax: [remote:origin] url = master.kernel.org:/pub/scm/git/git.git pull = master:origin For this, the parser could return remote.url = master.kernel.org:/pub/scm/git/git.git for origin remote.pull = master:origin for origin By introducing such a scheme, multi-value vars would fit perfectly for use for .git/remotes or .git/branches. Josef