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

Re: [RFC] separate .git from working directory

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Oct 21, 2006, 17:08 UTC
Message-ID
<fcaeb9bf0610211008t9da13a5m71105d0ddd031bae@mail.gmail.com>
In-Reply-To
<fcaeb9bf0610110623q365d3ffcw9ba9e11936d03a9d@mail.gmail.com>

Hi, After reading a post in VCS comparison thread mentioning /etc example. I think some of my patches might be useful for some users. They are two patches, tp/gitlink~1 and tp/gitlink~2 in git-pclouds.git on repo.or.cz. The implementation is a bit differerent from what I proposed. The .gitdir file (I named it .gitlink though) contains an alternative name for .git dir. It would be more obvious with the following example:

The standard layout:

a/.git a/file a/b/.git a/b/file

The new layout:

a/.git a/.git-b (it is actually a/b/.git) a/file a/b/.gitlink (whose content is ".git-b") a/b/file

With this I can move all .git directories to the top directory (or just parent directories). In /etc example, it can create a less cluttered directory structure. I do not submit these patches to git. It needs more work IMO.

-- 
Duy
Previous: Martin Waitz
Message 12 of 12 in “[RFC] separate .git from working directory”
  1. Nguyen Thai Ngoc DuyOct 11, 2006
  2. Alex RiesenOct 11, 2006
  3. SeanOct 11, 2006
  4. SeanOct 11, 2006
  5. Nguyen Thai Ngoc DuyOct 11, 2006
  6. Liu YubaoOct 12, 2006
  7. Liu YubaoOct 12, 2006
  8. Martin WaitzOct 11, 2006
  9. Nguyen Thai Ngoc DuyOct 11, 2006
  10. Junio C HamanoOct 11, 2006
  11. Martin WaitzOct 12, 2006
  12. Nguyen Thai Ngoc DuyOct 21, 2006

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.