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: Eric Sunshine <hidden>
Date: 2016-06-15 22:51:55

On 08/25/2011 05:06 PM, Jeff King wrote:
On Thu, Aug 25, 2011 at 05:00:51PM -0400, Eric Sunshine wrote:
quoted
quoted
Also, any other extensions that would go into such a list? I have no
idea what the common extension is for something like pascal or csharp.
C# uses extension ".cs".

".cpp" is common, in fact often required, by Windows compilers.
Thanks, added both to my list.
To clarify, I meant to say that for C++, .cpp is common/required on Windows.
quoted
What about ".h" and ".hpp"?
How well do our cpp patterns do with header files? I imagine they're
better than the default, but I don't think I've ever really tried
anything tricky.
I scanned through a number of revisions for one of my long-running C++ 
projects comparing the diff of header files with and without "*.h 
diff=cpp". In some header files in this project, the oft-used C++ 
keywords public:, protected:, and private: appear at start-of-line. In 
such cases, the default diff emits a less-than-useful hunk header:

     @@ -19,8 +19,8 @@ public:

whereas, "diff=cpp" emits:

     @@ -19,8 +19,8 @@ class Foobar

-- ES
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help