Re: [PATCH] attr: map builtin userdiff drivers to well-known extensions
- From
Jeff King <peff@peff.net>
- Date
- Dec 16, 2011, 19:32 UTC
- Message-ID
- <20111216193253.GD19924@sigill.intra.peff.net>
- In-Reply-To
- <A8E08CC616E248EC8F9000DD86F228E0@PhilipOakley>
On Fri, Dec 16, 2011 at 07:26:00PM -0000, Philip Oakley wrote:
Show 10 quoted lines
> >+ "*.m diff=objc", > > There is a conflict here with the Matlab community which also uses > "*.m" files for its scripts and code. > They fit the "It's not that hard to do, but it's an extra step that > the user might not even know is an option." rationale. > > If the objc.m is used as a default it must be overidable easily, and > listed in the appropriate documentation to mitigate the "might not > even know" risk.
It is easily overridable; just put your own "*.m" (or anything that matches your files) entry into your gitattributes file. I'm more concerned that people will start getting worse results than with the default, and not know how to fix it.
If you have some Matlab files, would you mind doing diffs with the default driver and with the objc driver, and comment on how good or bad the results are?
-Peff