git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Why don't git-init and git-clone probe for core.ignorecase on Windows > XP?

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 7, 2011, 20:18 UTC
Message-ID
<7voc7s5uy3.fsf@alter.siamese.dyndns.org>
In-Reply-To
<AANLkTimqgCsmC96fkWQJ0yB+FuyC6Xkgn3UAfZrqMqK_@mail.gmail.com>
Dun Peal <dunpealer@gmail.com> writes:
Show 13 quoted lines
> 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.

Previous: Dun PealNext: Dun Peal
Message 2 of 3 in “Why don't git-init and git-clone probe for core.ignorecase on Windows > XP?”
  1. Dun PealJan 7, 2011
  2. Junio C HamanoJan 7, 2011
  3. Dun PealJan 24, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.