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

Re: [PATCH] Add platform-independent .git "symlink"

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Feb 4, 2008, 22:44 UTC
Message-ID
<47A79541.6070900@nrlssc.navy.mil>
In-Reply-To
<alpine.LSU.1.00.0802042218280.8543@racer.site>
Johannes Schindelin wrote:
Show 22 quoted lines
> Hi,
> 
> On Mon, 4 Feb 2008, Brandon Casey wrote:
> 
>> Johannes Schindelin wrote:
>>> On Mon, 4 Feb 2008, Brandon Casey wrote:
>>>> Have you thought about using git-clone instead?
>>> Briefly.  But this is not about cloning the repository.  It is about 
>>> having an additional working directory for the current repository.
>> I think that is true at the low level, but from a high level it feels 
>> similar to me.
>>
>> [...]
>>
>>> I _want_ the original repository to know that there is another working 
>>> directory.
>> Yes, your ideas are much better than simply adding the functionality of 
>> the git-new-workdir script (which is what I was planning on doing btw :)
> 
> Somehow these two statements do not work together.  Either you have a 
> clone, or you accept that a new working directory is actually working on 
> the _same_ repository.

When we talk about clones we are not always talking about a strict "full" clone. We have at least:

	1) Full clone repository (with/without hardlinks, each is completely
	   independent)
	2) --shared/--reference (dependent on original repo, fragile)
	3) shallow repository (mostly independent)

If your statement above is rephrased to "I _want_ the original repository to know that it has conjoined siblings.", then we have a new repository type:

	4) conjoined repository (it has multiple sibling repositories each
	   with their own working directory, but they all share and modify the
	   same .git directory)
-brandon
Previous: Johannes SchindelinNext: Brandon Casey
Message 15 of 29 in “Add platform-independent .git "symlink"”
  1. Add platform-independent .git "symlink"Lars Hjemli, Feb 2, 2008
  2. Add tests for .git fileLars Hjemli, Feb 2, 2008
  3. Johannes SchindelinFeb 2, 2008
  4. Lars HjemliFeb 2, 2008
  5. Add platform-independent .git "symlink"Lars Hjemli, Feb 2, 2008
  6. Johannes SchindelinFeb 2, 2008
  7. Johannes SchindelinFeb 2, 2008
  8. Shawn O. PearceFeb 4, 2008
  9. Junio C HamanoFeb 4, 2008
  10. Johannes SchindelinFeb 4, 2008
  11. Brandon CaseyFeb 4, 2008
  12. Johannes SchindelinFeb 4, 2008
  13. Brandon CaseyFeb 4, 2008
  14. Johannes SchindelinFeb 4, 2008
  15. Brandon CaseyFeb 4, 2008
  16. Brandon CaseyFeb 4, 2008
  17. Johannes SchindelinFeb 5, 2008
  18. Johannes SchindelinFeb 5, 2008
  19. Brandon CaseyFeb 5, 2008
  20. Johannes SchindelinFeb 5, 2008
  21. Lars HjemliFeb 2, 2008
  22. Johannes SchindelinFeb 3, 2008
  23. Junio C HamanoFeb 4, 2008
  24. Johannes SchindelinFeb 4, 2008
  25. Shawn O. PearceFeb 4, 2008
  26. Junio C HamanoFeb 4, 2008
  27. Shawn O. PearceFeb 4, 2008
  28. Lars HjemliFeb 4, 2008
  29. Johannes SchindelinFeb 4, 2008

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.