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

Re: [PATCH/RFC] Revoke write access to refs and odb after importing another repo's odb

From
Duy Nguyen <pclouds@gmail.com>
Date
Jan 24, 2013, 01:30 UTC
Message-ID
<CACsJy8A1EVJbUsqyqNueEvhvd61VHfuiPL3VXBuAPs2FUw=_dg@mail.gmail.com>
In-Reply-To
<7v1udbj0kt.fsf@alter.siamese.dyndns.org>
On Thu, Jan 24, 2013 at 12:01 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
> I however have this suspicion that this will become a losing battle
> and we would be better off getting rid of add_submodule_odb();
> instead operations that work across repositories will be done as a
> subprocess, which will get us back closer to one of the original
> design goals of submodule support to have a clear separation between
> the superproject and its submodules.

It does not have to be subprocess. Thomas Rast did some work on support multithread access to object db by basically replicating all datastructure per thread. If that work is complete, we have something like "odb container" that could be used to access objects from another repository and it won't contaminate the original odb. The same thing can be done for ref and index access.

-- 
Duy
Previous: Duy Nguyen
Message 7 of 7 in “Revoke write access to refs and odb after importing another repo's odb”
  1. Revoke write access to refs and odb after importing another repo's odbNguyễn Thái Ngọc Duy, Jan 23, 2013
  2. Duy NguyenJan 23, 2013
  3. Junio C HamanoJan 23, 2013
  4. Jens LehmannJan 23, 2013
  5. Junio C HamanoJan 23, 2013
  6. Duy NguyenJan 24, 2013
  7. Duy NguyenJan 24, 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.