mingw: Create directory/file symlink from information available
commiteabcbcca480d38f62c40255c77e98bf26b4126c7
authorMichael Geddes <michael@frog.wheelycreek.net>
Wed, 14 May 2014 06:12:14 +0000 (14 14:12 +0800)
committerMichael Geddes <michael@frog.wheelycreek.net>
Sat, 21 Jun 2014 00:43:44 +0000 (21 08:43 +0800)
treef968b02d6c827ed5f9a36b7030556d9d0dacb957
parent75b8a678eed3282cf3ae45624b950c22a3eff136
mingw: Create directory/file symlink from information available

Windows NTFS symbolic links require specifying whether the target is a file or
directory at creation time.  This can partially be done by interrogating the
filesystem, however when creating symbolic links that are within a repository,
there can be no guarantee of the order of creation.

This patch enables the code to allow interrogation of the git cache to determine
whether a target will be a file or a directory.

Signed-off-by: Michael Geddes <michael@frog.wheelycreek.net>
compat/mingw.c
compat/mingw.h