Thread (16 messages) flat view 16 messages, 7 authors, 2016-06-15

Re: [RFC/PATCH] attr: map builtin userdiff drivers to well-known extensions

From: Brandon Casey <hidden>
Date: 2016-06-15 22:51:55

On 08/25/2011 09:45 PM, Jeff King wrote:
On Thu, Aug 25, 2011 at 05:29:36PM -0500, Brandon Casey wrote:
quoted
quoted
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.
quoted
*.[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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help