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

Trouble with case insensitive filesystem

From
LBLuc Bourhis <luc_j_bourhis@mac.com>
Date
May 15, 2013, 08:40 UTC
Message-ID
<F0A0C92F-6D85-463E-9CB5-B9060BDA196B@mac.com>
Hi,

I work on a case insensitive filesystem and I have core.ignorecase set to true. I have a series of troublesome commits and here is what git cat-file -p shows me:

... 100644 blob 99... fourCircles.py 100644 blob 97... fourcircles.py ...

The content of those slightly differ:
--- a/99...
+++ b/97...
-__version__='$Header: .../fourCircles.py, ...$'
+__version__='$Header: .../fourcircle.py, ...$'
 
As you can guess this git repo started its life with CVS (it was converted with git cvsimport). 
So I thought it was a job for git filter-branch, specifically I propose to do:
git filter-branch --index-filter 'git rm --cached --ignore-unmatch .../fourCircles.py' <commit>

However because of those two blobs, I have:

~> git status
#	modified:   .../fourCircles.py

and git filter-branch therefore refuses to run. I tried to use checkout, reset, 
even to commit that fluke of a change but whatever I do, that file is still marked 
as modified. 

I am sure I am missing a tiny detail that would get me
out of those dire straights but it has eluded me so far.

I run git 1.8.2.2 on MacOS 10.7.5 (installed with MacPorts if that matters).

Best wishes,

Luc J. Bourhis
Next: Johannes Sixt
Message 1 of 3 in “Trouble with case insensitive filesystem”
  1. Luc BourhisMay 15, 2013
  2. Johannes SixtMay 15, 2013
  3. Luc BourhisMay 16, 2013

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.