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

Unexpected ignorecase=false behavior on Windows

From
Marc Strapetz <marc.strapetz@syntevo.com>
Date
Jun 22, 2018, 12:04 UTC
Message-ID
<c5abdd45-a919-96f6-8560-5fd943069f5e@syntevo.com>
On Windows, when creating following repository:

$ git init $ echo "1" > file.txt $ git add . $ git commit -m "initial import" $ ren file.txt File.txt $ git config core.ignorecase false

Status results are:

$ git status --porcelain ?? File.txt

As on Unix, I would expect to see:
$ git status --porcelain
  D file.txt
?? File.txt

Is the Windows behavior intended? I'm asking, because e.g. JGit will report missing files, too, and I'm wondering what would be the correct way to resolve this discrepancy? (JGit does not have "ignorecase=true"-support at all, btw).

Tested with git version 2.17.1.windows.2
-Marc
Next: Johannes Sixt
Message 1 of 7 in “Unexpected ignorecase=false behavior on Windows”
  1. Marc StrapetzJun 22, 2018
  2. Johannes SixtJun 22, 2018
  3. Marc StrapetzJun 22, 2018
  4. Bryan TurnerJun 22, 2018
  5. Marc StrapetzJun 24, 2018
  6. Junio C HamanoJun 25, 2018
  7. Bryan TurnerJun 25, 2018

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.