git diff and objective c

When you are writing Objective-C code and using git you probably realised that the `git diff` is not mentioning the function name in which the change occurred. This can easily be changed by just running following cmd inside your git repository:

echo "*.m diff=objc" >> .gitattributes

Source: https://gist.github.com/bjhomer/2473281

This entry was posted in computer and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *