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

Re: Put part of working tree on another file-system.

From
RDRogan Dawes <lists@dawes.za.net>
Date
Dec 5, 2007, 15:34 UTC
Message-ID
<4756C51C.8080608@dawes.za.net>
In-Reply-To
<87mysp8ddk.fsf@osv.gnss.ru>
Sergei Organov wrote:
Show 10 quoted lines
> Hello,
> 
> I've a desire to put a sub-tree of my working tree into another
> file-system. With CVS I've used symlink to achieve this. It works fine
> with CVS as it doesn't care about directories and symlinks at all. I had
> little hope it will work with GIT, but I've performed a test anyway. To
> my surprise it almost worked, so I have a hope that maybe it's not that
> difficult to support this. What do you think? Or maybe there is a
> different way to achieve the goal with GIT?
> 

I needed to do this in Cygwin, and saw the same behaviour. I worked around it by using cygwin's "mount" command to "mount" the other directory in Cygwin's namespace. With this done, cygwin does not detect a symlink (since there is none), and works as expected.

With sufficient permissions, you can probably achieve the same effect with bind mounts perhaps (assuming Linux, of course).

Rogan
Previous: Sergei OrganovNext: Sergei Organov
Message 2 of 3 in “Put part of working tree on another file-system.”
  1. Sergei OrganovDec 5, 2007
  2. Rogan DawesDec 5, 2007
  3. Sergei OrganovDec 5, 2007

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.