mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-26 03:51:40 -05:00
Back when the FSCache was invented, there was no way to ask Windows to store filenames case-sensitively. Also, `fspathcmp()` had not been invented yet, so we simply used `strnicmp()` to compare the filenames in the FSCache. In the meantime, much has changed. Let's use `fspathncmp()` instead, and benefit from case-sensitive file names as configured. Note: to make use of this, users _must_ call `fsutil.exe file setCaseSensitiveInfo .` in an empty directory _before_ calling `git init` to allow Git to detect that filenames are stored case-sensitively. This fixes https://github.com/git-for-windows/git/issues/3686 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>