]> git.ipfire.org Git - thirdparty/git.git/commit
mingw: implement basic `symlink()` functionality (file symlinks only)
authorKarsten Blees <karsten.blees@gmail.com>
Fri, 9 Jan 2026 20:05:11 +0000 (20:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 10 Jan 2026 02:32:55 +0000 (18:32 -0800)
commit593008b95dfd4898f182d664d6b162c7590b4028
tree5eadcec85b07e3b7711de7d218bc8418d9924e47
parent980852dbff657a14eecc4a8a72a2874dad2bad71
mingw: implement basic `symlink()` functionality (file symlinks only)

Implement `symlink()`. This implementation always creates _file_
symlinks (remember: Windows discerns between symlinks pointing to
directories and those pointing to files). Support for directory symlinks
will be added in a subseqeuent commit.

This implementation fails with `ENOSYS` if symlinks are disabled or
unsupported.

Signed-off-by: Karsten Blees <karsten.blees@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw-posix.h
compat/mingw.c