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

Re: GIT & Symbolic Links

From
EWEnrico Weigelt <weigelt@metux.de>
Date
Mar 17, 2012, 16:00 UTC
Message-ID
<20120317160015.GB18712@mailgate.onlinehome-server.info>
In-Reply-To
<CACHQFzEJATc2hiSdAgoGg3vssQ-CShF+89TOkzVwaf_ujYy+3w@mail.gmail.com>
* Sassy Natan <sassyn@gmail.com> wrote:
Hi,
Show 6 quoted lines
> So for the example let's consider that user A clone the DEV GIT Repo
> into his/her home folder (/home/A/DEV)
> User B want to clone the same Repo. But now, I don't want user B to
> clone the all tree and files, but instead to have a symbolic links to
> the /home/A/DEV folder.
> All files and directories in the /home/B/DEV will be a links to the /home/A/DEV.

Symlinks wont fit here, as the userland sees them as links (and treats them as such). What you're looking for is some solution that does the cow stuff hidden from the normal userland. Perhaps via unionfs or something fuse-based.

BUT: I'd first raise the question if your tree needs to be that big
at all. Perhaps it should be splitted into several smaller ones.
What actually does your tree make that big ?
cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
Previous: KevinNext: Andrew Sayers
Message 3 of 4 in “GIT & Symbolic Links”
  1. Sassy NatanMar 12, 2012
  2. KevinMar 13, 2012
  3. Enrico WeigeltMar 17, 2012
  4. Andrew SayersMar 17, 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.