Re: [PATCHv2 2/2] attr: drop C/C++ default extension mapping
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 19, 2011, 18:10 UTC
- Message-ID
- <20111219181003.GB12200@elie.hsd1.il.comcast.net>
- In-Reply-To
- <20111219155737.GB19829@sigill.intra.peff.net>
Jeff King wrote:
Show 5 quoted lines
> But when you think about it, if our funcname pattern is bad, shouldn't > preventing (2) be the right thing? That is, if our funcname pattern is > really worse than the default language-agnostic match, wouldn't we be > doing everybody a service to simply remove the builtin > diff.cpp.xfuncname pattern?
I don't see why. Anyone who has set "diff=cpp" either likes suffering (maybe they are hoping to improve the pattern) or is working with a codebase for which the current pattern works better than the default behavior (maybe their codebase has a lot of goto labels aligned at column zero). So removing the funcname pattern can only hurt them.