[llvm-dev] [cfe-dev] Shortest RFC ever: I propose we rename files using `.TXT` extension to use `.txt`

via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 18 08:58:49 PST 2019



> -----Original Message-----
> From: cfe-dev [mailto:cfe-dev-bounces at lists.llvm.org] On Behalf Of Jacob
> Carlborg via cfe-dev
> Sent: Friday, January 18, 2019 5:40 AM
> To: cfe-dev at lists.llvm.org
> Cc: llvm-dev at lists.llvm.org
> Subject: Re: [cfe-dev] [llvm-dev] Shortest RFC ever: I propose we rename
> files using `.TXT` extension to use `.txt`
> 
> On 2019-01-18 04:27, Zachary Turner via cfe-dev wrote:
> > Yea, I honestly don't think this will be a problem.  I'm happy to help
> > you test this in the office one day, you can just check in a test file,
> > i'll sync, then rename with different case and check it in again, and
> > I'll sync.  But I'm with you.  I'd be very surprised if this is a
> > problem on modern clients.
> 
> On macOS (which uses a case-insensitive) filesystem "git mv" works as
> expected. But if you use the regular "mv" command "git status" will not
> see the file as being renamed.

FTR, on Windows I have accidentally done things like

    git add lib/debuginfo/foobar

which works totally fine, until you try to checkout on Linux, where
you will discover you have both a lib/DebugInfo and a lib/debuginfo
directory sitting side-by-side, and your build dies mysteriously.

I would *never* be sanguine about multi-platform tools like git or svn
behaving "the way you expect" when it comes to filespec case.
--paulr

> 
> --
> /Jacob Carlborg
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


More information about the llvm-dev mailing list