]> git.ipfire.org Git - thirdparty/git.git/commit
mingw: implement `readlink()`
authorKarsten Blees <karsten.blees@gmail.com>
Fri, 9 Jan 2026 20:05:10 +0000 (20:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 10 Jan 2026 02:32:55 +0000 (18:32 -0800)
commit980852dbff657a14eecc4a8a72a2874dad2bad71
tree6c8b7dfae701fa6daec879c16babdadcc541391e
parent43745a7d55daa1aa0937a3c6e8b521bd026a31f1
mingw: implement `readlink()`

Implement `readlink()` by reading NTFS reparse points via the
`read_reparse_point()` function that was introduced earlier to determine
the length of symlink targets. Works for symlinks and directory
junctions.

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