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

Re: Multiple checkouts active for the same repository

From
Joshua Jensen <jjensen@workspacewhiz.com>
Date
Sep 24, 2010, 16:32 UTC
Message-ID
<4C9CD2B2.3030106@workspacewhiz.com>
In-Reply-To
<14b089955184bbb677b6434993682403@212.159.54.234>
  ----- Original Message -----
From: Julian Phillips
Date: 9/24/2010 9:33 AM
Show 5 quoted lines
> The git-new-workdir script to be found in contrib/workdir allows multiple
> working copies to share the same repository - though there are some
> caveats:
>
>   1) uses symbolic links, so doesn't work on Windows

Windows Vista and Windows 7 both support proper file and directory symbolic links. According to my experimentation the other day with git-new-workdir on Windows 7:

* Windows - mklink /D creates a directory symbolic link.  mklink creates 
a file symbolic link.  The file system traverses into the symbolic link 
and back out of it just like Unix.  rmdir /S deletes just the directory 
symbolic link.  Windows Explorer's delete does the same.
* Cygwin - 'ln -s' does not create a true directory symbolic link.  
Cygwin seems to understand the symbolic link, but Windows itself 
doesn't.  'rm -f' properly deletes a directory symbolic link.
* Bash included with msysGit - 'ln -s' performs a file/directory copy.  
'rm -f' whacks the directory contents of the linked directory and then 
deletes the symbolic link.  Ick.  :(
Josh
Previous: Julian PhillipsNext: Gustavo Narea
Message 6 of 9 in “Multiple checkouts active for the same repository”
  1. Gustavo NareaSep 24, 2010
  2. Gustavo NareaSep 24, 2010
  3. Ævar Arnfjörð BjarmasonSep 24, 2010
  4. Gustavo NareaSep 24, 2010
  5. Julian PhillipsSep 24, 2010
  6. Joshua JensenSep 24, 2010
  7. Gustavo NareaSep 27, 2010
  8. Martin PetterssonSep 27, 2010
  9. Jakub NarebskiSep 24, 2010

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.