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

Re: Bug with ignorecase on Git and Cygwin

From
Torsten Bögershausen <tboegi@web.de>
Date
Aug 16, 2017, 12:55 UTC
Message-ID
<20170816125510.GA26384@tor.lan>
In-Reply-To
<078108E7D0BA58498F61BC8C1ED2D10933E86F@srvne111.csem.local>
On Wed, Aug 16, 2017 at 11:50:47AM +0000, CHEVALLIER Yves wrote:
Show 10 quoted lines
> Hi, 
> 
> On Cygwin, the config value `ignorecase` is set to `true` during `git init` and it is not possible to change the default value using templates. 
> 
> The issue was discovered while I was tracking a bunch of source files of a SDK. To track the changes I simply rm all the working directory, unzip the new SDK, then git add . and git commit -am "new sdk". In this process an issue with an assembly file with preprocessing was incorrectly named .s instead of .S. In the next version the correction was made, but Git was unable to detect it. 
> 
> That said I've tried to manually change ignorecase from true to false and I still have the issue. Git on Cygwin cannot detect files renamed with a case change. 
> 
> Is it a bug?
> 

The thing is that the underlying file system (under cygwin, Windows in general, or MacOs) treats a.s the same as a.S So Git can not do better than the file system. What you can do:

git mv a.S a.s git commit

(This can be done by a script)
> # It works on Ubuntu
[]
Previous: CHEVALLIER Yves
Message 2 of 2 in “Bug with ignorecase on Git and Cygwin”
  1. CHEVALLIER YvesAug 16, 2017
  2. Torsten BögershausenAug 16, 2017

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.