Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 82cc187

Browse files
committed
MinGW: Add symlink support for NTFS on windows
This patch implements git support for NTFS symbolic link type reparse points. * There is a specific privelege required to create symbolic links that is not generally associated with a standard user. This part is up to the user to worry about. * NTFS reparse points differentiate between file and directory links. This patch assumes file links are meant. (A separate patch will develop this further). * This patch is not intended to implement symbolic links in the shell utilities. This means that as of when this was written, bash and gnu utilities do not handle them. * Windows chdir behaves differently to *nix, and we need to unravel symbolic links for various operations to work as expected. * For efficiency, as much as possible of the calls are done with wchar_t, before being converted to utf-8. This is as much about avoiding dealing with windows default encoding as anything else. * resolve_symlink needed to be replaced in lockfile.c since there are some issues with recognising absolute paths, as well as for efficiency with wchar_t. This work was based on a combination of patches developed by the following people: original-by: Johannes Schindelin <[email protected]> original-by: Thorvald Natvig <[email protected]> Signed-off-by: Michael Geddes <[email protected]>
1 parent 7e872d2 commit 82cc187

File tree

4 files changed

+497
-48
lines changed

4 files changed

+497
-48
lines changed

0 commit comments

Comments
 (0)