Commit 97d21a9
committed
fixup! mingw: add a cache below mingw's lstat and dirent implementations
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 #3686
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 5437f0f commit 97d21a9
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
0 commit comments