Re: Why don't git-init and git-clone probe for core.ignorecase on Windows > XP?
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:21
Dun Peal [off-list ref] writes:
The git-config manpage says about core.ignorecase: "The default is false, except git-clone(1) or git-init(1) will probe and set core.ignorecase true if appropriate when the repository is created." I assume this is happening when you clone or init on FAT, which is explicitly mentioned earlier in that section. But apparently it doesn't happen for either XP, Vista or 7. While those newer releases use NTFS, which technically supports case-sensitivity, the operating itself still apparently doesn't, so it would seem like git-clone and git-init should probe regarding the core.ignorecase on any version of Windows, no?
Sorry, but it is unclear if you are complaining that core.ignorecase is set (but you believe it shouldn't be) or it is not set (but you believe it should be) on NTFS from the description. As far as I can tell from the code (I obviously only look at the plain vanilla git, and msysgit might have some patch to this part, I dunno. Oh by the way you didn't say which version you are complaining about, either), we do the probing on all systems (including POSIX folks with FAT filesystem mounted) by first creating .git/config and then checking if a file .git/CoNfIg which we know we never created can be accessed. If we can, that means the filesystem ignores case, iow, we cannot have two files config and CoNfIg at the same time, and set core.ignorecase to true.