Re: Painless namespaces design
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Jun 15, 2011, 14:00 UTC
- Message-ID
- <BANLkTiktjki43wCX5d2SV+tKjp_fqmGznw@mail.gmail.com>
- In-Reply-To
- <4DF894FD.9040808@gmail.com>
2011/6/15 Jiang Xin <worldhello.net@gmail.com>:
> I like the idea of new namespaces feature from Josh Triplett, Jamey Sharp and others. > I think it is better to pass namespace through remote.remote-name.namespace variables, > not through GIT_NAMESPACE environment.
...
Show 8 quoted lines
> [remote "origin"] > namespace = foo > fetch = +refs/heads/*:refs/remotes/origin/* > url = ssh://Host1/path/to/project.git > > When UserA runs `git fetch`, it's just like > > git fetch origin refs/namespaces/foo/refs/heads/*:refs/remotes/origin/*
This is less than ideal. Part of the rationale for the GIT_NAMESPACE environment variable is to allow the server to restrict the namespace and only show that specific slice of the repository's refs to the client. It allows a server administrator to put several logical repositories into a single repository, and have clients be oblivious to this fact.
-- Shawn.