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

Re: RFD: Handling case-colliding filenames on case-insensitive filesystems

From
GTGreg Troxel <gdt@ir.bbn.com>
Date
Feb 23, 2011, 23:09 UTC
Message-ID
<rmi39newdpp.fsf@fnord.ir.bbn.com>
In-Reply-To
<4D658FAD.2010505@xiplink.com>
Marc Branchaud <marcnarc@xiplink.com> writes:
Show 12 quoted lines
> On 11-02-23 02:07 PM, Jay Soffian wrote:
>
>> And on a case-insensitive file-system, git has remapped foo.[ch] to
>> foo~2.[ch] for the purposes of avoiding collisions on checkout.
>> 
>> The checkout can't be compiled correctly, so what's the point of even
>> allowing it?
>
> In our case it would be useful to still have that checkout because the
> people working on the case-insensitive systems are dealing with a
> different part of the tree and don't care about the part with the
> collision.

Agreed; I've had this problem too. In particular, a repository with multiple packages imported, one of which was a Linux flavor that has conflicting names in case-preserving filesystems. The result was an apparently modified checkout, but the offending files were not interesting to the project. So some sort of remapping, and the subsequent prohibition on modifications (perhaps to either) seems like a good plan.

Perhaps by default the checkout should just error out, but then it would be good to have a variable to instead translate the duplicated names.

Previous: Marc BranchaudNext: Johan Herland
Message 11 of 12 in “RFD: Handling case-colliding filenames on case-insensitive filesystems”
  1. Johan HerlandFeb 23, 2011
  2. Junio C HamanoFeb 23, 2011
  3. Shawn PearceFeb 23, 2011
  4. Junio C HamanoFeb 23, 2011
  5. Johan HerlandFeb 24, 2011
  6. Junio C HamanoFeb 24, 2011
  7. Johan HerlandFeb 24, 2011
  8. Jay SoffianFeb 23, 2011
  9. Matthieu MoyFeb 23, 2011
  10. Marc BranchaudFeb 23, 2011
  11. Greg TroxelFeb 23, 2011
  12. Johan HerlandFeb 24, 2011

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.