Re: Get rid of .git/branches/ and .git/remotes/?
From: Josef Weidendorfer <hidden>
Date: 2016-06-15 22:42:13
On Monday 21 November 2005 00:26, Josef Weidendorfer wrote:
On Sunday 20 November 2005 19:09, Linus Torvalds wrote:quoted
[branches.origin] url = master.kernel.org:/pub/scm/git/git.git pull = master:originTwo 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