Re: What's cooking in git.git (Sep 2011, #04; Mon, 12)
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Sep 13, 2011, 15:04 UTC
- Message-ID
- <4E6F70E6.2070602@sunshineco.com>
- In-Reply-To
- <CAEBDL5VDsc49wj6GiQ0ZaSZ0eBy_iTd73zhgqhLfOLFhnqC-5A@mail.gmail.com>
On 9/13/2011 3:51 AM, John Szakmeister wrote:
Show 9 quoted lines
> On Mon, Sep 12, 2011 at 7:15 PM, Eric Sunshine<sunshine@sunshineco.com> wrote: > [snip] >> Shouldn't the last entry be? >> >> "*.m diff=objc", > > Or maybe not there at all? We tend to do quite a bit with Matlab, and > Matlab scripts also end in ".m". Unfortunately, it bears little > resemblance to Objective-C.
This default mapping is provided as a convenience only. Users can edit .gitattributes as needed. If we assume that the number of Macintosh and iOS (iPhone, iPad, iPod Touch) programmers heavily outweighs the number of Matlab users, then the convenience of having .m in the default list may be justified.
It also is reasonable to ask if the "*.m diff=objc" mapping actually produces an inferior diff hunk-header[1] for Matlab files than when "diff=objc" is not present.
[1]: http://thread.gmane.org/gmane.comp.version-control.git/180103/
-- ES