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

Re: [PATCH] fast-import.c: always honor the filename case

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 4, 2014, 00:14 UTC
Message-ID
<xmqqwqhbag4p.fsf@gitster.dls.corp.google.com>
In-Reply-To
<52EFFA36.8090305@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
Show 11 quoted lines
> []
>> So to summarize, when fast-import uses strncmp_icase (what fast-import does now) import on a repository where ignorecase=true is wrong.  My patch, "fast-import.c: always honor the filename case" fixes this.  Can you verify?
>>
>> Thanks in advance,
>> Reuben
>>
> Yes, I can verify. My feeling is that
> a) the fast-export should generate the rename the other way around.
>    Would that be feasable ?
>    Or generate a real rename ?
>   (I'm not using fast-export or import myself)

I do not think this matters. Or at least, it should not matter. As Peff said in the nearby message, core.ignorecase is completely about the _filesystem_, and that git should generally be case-sensitive internally.

And fast-import is about reading internal representation of paths and data to populate the repository, without having to guess what pathnames were meant to be used---the guess is only needed if we need to consult the filesystem that loses case information.

The change made by 50906e04 (Support case folding in git fast-import when core.ignorecase=true, 2010-10-03) should probably be half reverted by making the case-squashing an optional feature, that could be used even on a system with case sensitive filesystems.

Previous: Torsten BögershausenNext: Torsten Bögershausen
Message 6 of 9 in “fast-import.c: always honor the filename case”
  1. fast-import.c: always honor the filename caseReuben Hawkins, Feb 2, 2014
  2. Torsten BögershausenFeb 2, 2014
  3. Jeff KingFeb 2, 2014
  4. Junio C HamanoFeb 3, 2014
  5. Torsten BögershausenFeb 3, 2014
  6. Junio C HamanoFeb 4, 2014
  7. Torsten BögershausenFeb 5, 2014
  8. Torsten BögershausenFeb 9, 2014
  9. Torsten BögershausenFeb 11, 2014

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.