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

Re: [PATCH] git-new-workdir: add windows compatibility

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 26, 2015, 09:53 UTC
Message-ID
<cbfbf842705637b52cde9c6b61f89a75@www.dscho.org>
In-Reply-To
<xmqqfv6k7zp3.fsf@gitster.dls.corp.google.com>
Hi,
On 2015-05-26 06:03, Junio C Hamano wrote:
Show 23 quoted lines
> Daniel Smith <dansmith65@gmail.com> writes:
> 
>> When running on Windows in MinGW, creating symbolic links via ln always
>> failed.
>>
>> Using mklink instead of ln is the recommended method of creating links on
>> Windows:
>> http://stackoverflow.com/questions/18641864/git-bash-shell-fails-to-create-symbolic-links
>>
>> Script now branches on Windows to use mklink. This change should not affect
>> unix systems.
>>
>> Signed-off-by: Daniel Smith <dansmith65@gmail.com>
>>
>> Has been tested on Windows 8.1 and OS X Yosemite.
>> ---
> 
> Swap the "Has been tested..." and "Signed-off-by:" lines.
> 
> I'll defer to Windows folks if "mklink" is a sensible thing to use
> or not; I have no first-hand experience with Windows, but only heard
> that links are for admin user only or something like that, so I want
> to hear from people whose judgement on Windows matters I trust.
The biggest problem with `mklink` is that it is only supported on Windows Vista and later, while I really like to keep Windows XP support in Git for Windows.
That is why Karsten Blees' symlink support (emulated via NTFS reparse points) which I just merged into Git for Windows yesterday is so careful about everything.
But git-new-workdir is in `contrib/`, anyway, and not installed in Git for Windows by default, therefore it is less critical: interested parties will have to be a bit knowledgeable in any case.
So I am fine with it!

Ciao, Dscho

Previous: Junio C HamanoNext: Paul Smith
Message 2 of 9 in “Re: [PATCH] git-new-workdir: add windows compatibility”
  1. Junio C HamanoMay 26, 2015
  2. Johannes SchindelinMay 26, 2015
  3. Paul SmithMay 26, 2015
  4. Johannes SchindelinMay 26, 2015
  5. Michael J GruberMay 29, 2015
  6. Duy NguyenMay 29, 2015
  7. Johannes SchindelinMay 29, 2015
  8. Karsten BleesMay 26, 2015
  9. Johannes SchindelinMay 27, 2015

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.