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

Re: How to have multiple working copy directories use the same repository?

From
Sergio <sergio.callegari@gmail.com>
Date
Oct 11, 2007, 19:21 UTC
Message-ID
<loom.20071011T191233-202@post.gmane.org>
In-Reply-To
<744844.82514.qm@web55015.mail.re4.yahoo.com>

One possibility can be to use the "git-new-workdir" script that is distributed in the contrib directory of git source. It allows to have many work dirs insisting on the same repo (yet possibly operating on different branches!)

I believe that you might need to be careful with that, though:

1) There is no check about the possibility of messing things
up by working on the same branch from two points.
2) There should be a basic infrastructure to avoid nasty
things from happening but I do not know if it is complete.
3) Implementation is based on symlinks in the git directory,
so it is only for architectures supporting symlinks and, since
there are many symlinks, if something gets changed by mistake and
some symlink looses consistency with the others bad things may
happen.
Sergio  
Previous: Shawn O. Pearce
Message 4 of 4 in “How to have multiple working copy directories use the same repository?”
  1. Bill PriestOct 11, 2007
  2. Alex RiesenOct 11, 2007
  3. Shawn O. PearceOct 12, 2007
  4. SergioOct 11, 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.