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

Re: file name case-sensitivity issues

From
Linus Torvalds <torvalds@osdl.org>
Date
May 23, 2006, 21:30 UTC
Message-ID
<Pine.LNX.4.64.0605231426520.5623@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.64.0605231412350.5623@g5.osdl.org>
On Tue, 23 May 2006, Linus Torvalds wrote:
> 
> The closest I can imagine is to add a config option like "core.lowercase", 
> and that would make us always add files to the index in lower case.

Side note: doing it by just changing the name compare functions to ignore case is _not_ a good things to do, because that would generate tree objects that simply don't work (or fsck) correctly on any other machine.

The index and tree objects are all sorted by pathname, and thus the sorting order has to be something that everybody agrees on, and any locale dependencies are not appropriate.

It might be worth asking the monotone guys what they do - they've worked on Windows for a long time.

		Linus
Previous: Linus TorvaldsNext: Ben Clifford
Message 3 of 10 in “file name case-sensitivity issues”
  1. Alex RiesenMay 23, 2006
  2. Linus TorvaldsMay 23, 2006
  3. Linus TorvaldsMay 23, 2006
  4. Ben CliffordMay 23, 2006
  5. Junio C HamanoMay 24, 2006
  6. Ben CliffordMay 24, 2006
  7. Junio C HamanoMay 23, 2006
  8. Alex RiesenMay 25, 2006
  9. Junio C HamanoMay 25, 2006
  10. Christopher FaylorMay 26, 2006

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.