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

Re: git submodule vs GIT_WORK_TREE

From
Richard Hartmann <richih.mailinglist@gmail.com>
Date
Jul 1, 2012, 10:34 UTC
Message-ID
<CAD77+gSu-RxtcyXqpF6+VanLh==_BJymTAnY2M_EiMz=b63F6g@mail.gmail.com>
In-Reply-To
<7vvci93k6k.fsf@alter.siamese.dyndns.org>

First of all, thanks for your detailed analysis; it cleared things up for me quite a bit.

I am not sure if this would work in all cases, but let's assume there is a new GIT_WORK_ROOT which will always point to the top level of a given repository (it would stay the same for submodules, as well).

As for storage of .git, GIT_DIR_ROOT would always point to a directory where git data is stored and GIT_DIR_NAME to the relative path within GIT_DIR_ROOT. Admittedly, this may be rather specific to vcsh, but I don't see any other (reliable) option to support submodules.

Thanks, Richard

Previous: Junio C HamanoNext: Junio C Hamano
Message 11 of 13 in “git submodule vs GIT_WORK_TREE”
  1. Richard HartmannJun 26, 2012
  2. Junio C HamanoJun 26, 2012
  3. Jens LehmannJun 26, 2012
  4. Junio C HamanoJun 26, 2012
  5. Jens LehmannJun 26, 2012
  6. Junio C HamanoJun 26, 2012
  7. Richard HartmannJun 29, 2012
  8. Junio C HamanoJun 29, 2012
  9. Junio C HamanoJun 29, 2012
  10. Junio C HamanoJun 29, 2012
  11. Richard HartmannJul 1, 2012
  12. Junio C HamanoJul 2, 2012
  13. Richard HartmannJun 29, 2012

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.