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

Re: [PATCH 1/2] init-db.c: honor case on case preserving fs

From
Dmitry Potapov <dpotapov@gmail.com>
Date
Feb 2, 2014, 05:46 UTC
Message-ID
<CAHkcoth+4d1PsSaoUEFcLVbE-q7bhVBWut1WRyEKCOxSJ0tTwQ@mail.gmail.com>
In-Reply-To
<CAD_8n+TQ4i2Z5zePXCTqpdF8mpRrzzKjDUB-NxZ1PJAwek-y1w@mail.gmail.com>
On 2/2/14, Reuben Hawkins <reubenhwk@gmail.com> wrote:
Show 6 quoted lines
>>
> This is a separate issue which core.ignorecase is sweeping under the rug.
>  When you get this error message, do an 'ls' and you'll see there isn't an
> untracked file called 'FileName.txt'.  There is, however, a tracked file
> called 'Filename.txt'.  Because there aren't really any untracked files,
> the merge should be able to complete without overwriting anything.

I am afraid but it is exactly the same issue, because it never happens on any case-sensitive system. IIRC, Git stats 'FileName.txt' to verify whether it exists or not, and the file system tells that this file exists, because it ignores case. So the option is called 'ignorecase'.

No one meant this option to be about whether the file system preserves case or not, because Git does not care about it and assumes that on any case-insensitive filesystem, the right case is in the index, which is usually better, because otherwise people can often change filenames inadvertently.

I don't know much about importers, but I have looked at the source code of fast-import.c and I do not see ignore_case there, though it may affect it indirectly through some functions that it uses. AFAIK, fast-import does not rely on the filesystem, it should always work with ignorecase=false.

Dmitry
Previous: Dmitry Potapov
Message 6 of 6 in “init-db.c: honor case on case preserving fs”
  1. 1/2 init-db.c: honor case on case preserving fsReuben Hawkins, Feb 1, 2014
  2. 2/2 init-db.c: factor out probe_case_sensitivity funcReuben Hawkins, Feb 1, 2014
  3. Torsten BögershausenFeb 1, 2014
  4. Junio C HamanoFeb 2, 2014
  5. Dmitry PotapovFeb 1, 2014
  6. Dmitry PotapovFeb 2, 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.