git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Access different NAMESPACE of remote repo from client side

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Nov 16, 2013, 09:13 UTC
Message-ID
<5287373A.8030604@gmail.com>
In-Reply-To
<CANYiYbHzHEFLshU8r-m=0CUo7JTu-iyv1W4N291hX8+r1BYY-w@mail.gmail.com>
On 11/16/2013 01:30 PM, Jiang Xin wrote:
> 2013/11/15 Sitaram Chamarty <sitaramc@gmail.com>:
>> On 11/15/2013 07:55 PM, Sitaram Chamarty wrote:
[snip]
Show 7 quoted lines
>> I should add that the Gitolite model is: the user doesn't need to know
>> about namespaces, because namespaces are just things that the server
>> admin is setting up for his own reasons...
>>
> 
> I want to say something that git-namespace is sometimes significant
> for normal user not only for admin.
Sure.  I only meant in the model that I wrote that branch for.
But consider a slight change of syntax:
    repo dev/CREATOR/..*
        C   =   @team
        RW+ =   CREATOR
        R   =   @all
        option namespace.pattern-1 = dev/%/%/NS/* is @1/@3 in @2

Let's say linux and git are parent repos already created (maybe earlier in the conf).

This conf will let you use URLs like
    dev/u1/git/NS/bar   (becomes namespace u1/bar in git)
    dev/u2/git/NS/baz   (becomes namespace u2/baz in git)

Yeah it looks like a kludge, but all I wanted to do was to show you that it's not entirely true to say the client cannot control the namespace!

Previous: Jiang Xin
Message 6 of 6 in “Access different NAMESPACE of remote repo from client side”
  1. Jiang XinNov 15, 2013
  2. shell: allow git command with --namespace optionJiang Xin, Nov 15, 2013
  3. Sitaram ChamartyNov 15, 2013
  4. Sitaram ChamartyNov 15, 2013
  5. Jiang XinNov 16, 2013
  6. Sitaram ChamartyNov 16, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.