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

Re: [PATCH 3/3] Teach "git branch" about --new-workdir

From
Julian Phillips <julian@quantumfyre.co.uk>
Date
Jul 24, 2007, 12:06 UTC
Message-ID
<Pine.LNX.4.64.0707241252040.28577@reaper.quantumfyre.co.uk>
In-Reply-To
<46A5DF1F.2030307@trolltech.com>
On Tue, 24 Jul 2007, Marius Storm-Olsen wrote:
Show 18 quoted lines
>>  I do not know this is an appropriate itch to scratch for a Windows
>>  developer to begin with.  The new-workdir setting *is* about
>>  symlinked .git/ metainfo space.  If somebody wants to work on a
>>  filesystem without symlink, he should not be using new-workdir but
>>  something else.  E.g. GIT_DIR + GIT_WORK_TREE, or perhaps GIT_DIR +
>>  core.worktree comes to mind.
>
> That's is definitely an option, though it seems to me that its more like 
> giving up than a finding a proper solution. In any case, it would result in 
> two completely different workflows on systems with and without symlink 
> support. I work on both, and would like my workflow to be consistent. Of 
> course I could easily add my own scripts on top to achieve this, but then 
> we're going back into h4x0r land and not making Git more 'available'.
>
> The new-workdir feature doesn't *have* to be about symlinked .git/ metainfo 
> space, but could also be about symref'ed .git/ metainfo.
> (A discussion was done in 2005s "Getting rid of symlinks in .git?", but the 
> conclusion was that it would slow it down too much? *ponder*)

Symref'ed isn't really the right term ... we're not talking about refs here. You would have to basically implement symlinks _inside_ git ...

New-workdir really _is_ all about symlinks. It already exists as a contrib feature - and moving it into core is (as I understand it) really just moving it, not redesigning.

If you were going to avoid symlinks, then probably the cleanest way would be to have an explict way to point at the actual repo - rather than making the working look like a repo if you squint hard enough. Which sounds rather like it would be an extension to GIT_DIR + GIT_WORK_TREE. I haven't looked at it, but it shouldn't be too hard to have a mechanism that automatically does GIT_DIR=<there> GIT_WORK_TREE==<here> when the appropriate setup is in place? Though you would have to get it into all the appropriate places ...

-- 
Julian

  ---
<aav> coffee on an empty stomach is pretty nasy
<knghtbrd> aav: time to run to the vending machine for cheetos
<aav> cheetos? :)
Previous: Marius Storm-OlsenNext: Marius Storm-Olsen
Message 23 of 46 in “Teach "git branch" about --new-workdir”
  1. 3/3 Teach "git branch" about --new-workdirJohannes Schindelin, Jul 22, 2007
  2. Daniel BarkalowJul 22, 2007
  3. Johannes SchindelinJul 22, 2007
  4. Julian PhillipsJul 22, 2007
  5. Johannes SchindelinJul 22, 2007
  6. Julian PhillipsJul 22, 2007
  7. Johannes SchindelinJul 22, 2007
  8. Julian PhillipsJul 22, 2007
  9. Jakub NarebskiJul 22, 2007
  10. Johannes SchindelinJul 22, 2007
  11. Johannes SchindelinJul 22, 2007
  12. Shawn O. PearceJul 23, 2007
  13. Junio C HamanoJul 23, 2007
  14. Shawn O. PearceJul 23, 2007
  15. Shawn O. PearceJul 23, 2007
  16. Johannes SchindelinJul 23, 2007
  17. Johannes SchindelinJul 23, 2007
  18. Marius Storm-OlsenJul 24, 2007
  19. Johannes SchindelinJul 24, 2007
  20. Junio C HamanoJul 24, 2007
  21. Johannes SchindelinJul 24, 2007
  22. Marius Storm-OlsenJul 24, 2007
  23. Julian PhillipsJul 24, 2007
  24. Marius Storm-OlsenJul 24, 2007
  25. Johannes SchindelinJul 24, 2007
  26. Josef WeidendorferJul 24, 2007
  27. Johannes SchindelinJul 24, 2007
  28. Josef WeidendorferJul 24, 2007
  29. Jakub NarebskiJul 25, 2007
  30. Johannes SchindelinJul 24, 2007
  31. Marius Storm-OlsenJul 24, 2007
  32. Marius Storm-OlsenJul 24, 2007
  33. Johannes SchindelinJul 24, 2007
  34. Marius Storm-OlsenJul 24, 2007
  35. Johannes SchindelinJul 24, 2007
  36. Marius Storm-OlsenJul 24, 2007
  37. Alex RiesenJul 24, 2007
  38. Marius Storm-OlsenJul 25, 2007
  39. Johannes SchindelinJul 25, 2007
  40. Steven GrimmJul 25, 2007
  41. Andy ParkinsJul 25, 2007
  42. Marius Storm-OlsenJul 25, 2007
  43. Johannes SchindelinJul 25, 2007
  44. Linus TorvaldsJul 25, 2007
  45. Christian MICHONJul 26, 2007
  46. Julian PhillipsJul 23, 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.