Re: [RFC/PATCH] attr: map builtin userdiff drivers to well-known extensions
- From
- Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
- Date
- Aug 26, 2011, 15:33 UTC
- Message-ID
- <49Jb0B80dYohdvQHEk2HW7bFvbaGqrVei6JPtUczcIQObOhHK_bRVKFymHMrH2zujgbzsGeCGMdeqznOy2_QjqRtEmq6i-OlPkXcT1B76QA@cipher.nrlssc.navy.mil>
- In-Reply-To
- <20110826024533.GB17625@sigill.intra.peff.net>
On 08/25/2011 09:45 PM, Jeff King wrote:
Show 8 quoted lines
> On Thu, Aug 25, 2011 at 05:29:36PM -0500, Brandon Casey wrote: > >>> Also, any other extensions that would go into such a list? >> >> *.bib diff=bibtex >> *.tex diff=tex > > I had those ones already. ;P
Indeed. I must be blind, I skipped right over them.
Show 11 quoted lines
>> *.[Ff] diff=fortran >> *.[Ff][0-9][0-9] diff=fortran > > Thanks, I'll add those. I don't see a big problem with generalizing > f[0-9][0-9] to always be fortran, even though many of those numbers > aren't used. I don't think I've ever seen one used for anything else. > > Should all of our matches be case-insensitive? That is, should we be > matching both .HTML and .html? Clearly lowercase is the One True Way, > but I don't know what kind of junk people with case-insensitive > filesystems have, or whether we should even worry about it.
For the fortran case, Gnu fortran actually processes the files differently depending on whether the f is capitalized (it preprocesses or not). So there is a functional reason for using a capital letter.
For the others, I don't know. Do people still create files named .HTML or is that just a relic of the past? I can't really think of a strong argument for or against matching insensitively.
-Brandon