git/compat
Karsten Blees 48bc5094de mingw: implement stat() with symlink support
With respect to symlinks, the current `mingw_stat()` implementation is
almost identical to `mingw_lstat()`: except for the file type (`st_mode
& S_IFMT`), it returns information about the link rather than the target.

Implement `mingw_stat()` by opening the file handle requesting minimal
permissions, and then calling `GetFileInformationByHandle()` on it. This
way, all links are resolved by the Windows file system layer.

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>
2026-01-09 18:32:54 -08:00
..
2024-10-25 14:02:04 -04:00
2025-12-07 07:28:12 +09:00
2022-05-02 09:50:37 -07:00
2025-12-07 07:28:13 +09:00
2024-06-14 10:26:33 -07:00
2021-10-29 15:00:58 -07:00