diff options
| author | Karsten Blees <karsten.blees@gmail.com> | 2026-01-09 20:05:08 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-09 18:32:55 -0800 |
| commit | 5e88e98c04267b44e4f822f297c60e1e8c852411 (patch) | |
| tree | 47ec6363a46c52557345b52ce33f946b5fb49566 /contrib/persistent-https | |
| parent | ac41bfa374d67023970b26dc7117c878dfb58d06 (diff) | |
| download | git-5e88e98c04267b44e4f822f297c60e1e8c852411.tar.gz git-5e88e98c04267b44e4f822f297c60e1e8c852411.zip | |
mingw: support renaming symlinks
Older MSVCRT's `_wrename()` function cannot rename symlinks over
existing files: it returns success without doing anything. Newer
MSVCR*.dll versions probably do not share this problem: according to CRT
sources, they just call `MoveFileEx()` with the `MOVEFILE_COPY_ALLOWED`
flag.
Avoid the `_wrename()` call, and go with directly calling
`MoveFileEx()`, with proper error handling of course.
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>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
