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
Dun Peal <dunpealer@gmail.com>
Date
Jan 24, 2011, 21:15 UTC
Message-ID
<AANLkTinGUR=ny7kg-2TUAn=p=VDs-XrVfOdYgm+uRvrP@mail.gmail.com>
In-Reply-To
<7voc7s5uy3.fsf@alter.siamese.dyndns.org>
Thanks Junio, this question was due to a misunderstanding on my part:

For some reason, I thought "probe" in the man meant asking the user whether core.ignorecase should be set. I vaguely recall there's another (also Windows-related) setting that is interactively queried like that.

Following your reply I tested with recent (1.7) installations of msysgit and core.ignorecase is set automatically to true in .git/config for newly created / cloned repo on NTFS over Windows 7.

Thanks again and sorry for the misunderstanding, D.
On Fri, Jan 7, 2011 at 2:18 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 29 quoted lines
> Dun Peal <dunpealer@gmail.com> 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.
>
Previous: Junio C Hamano
Message 3 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.