Skip to main content

~/christopher.loessl

git diff and ObjectiveC

When writing Objective-C code and using git you probably realised that the git diff output does not mention the function name in which the change occurred. This can easily be changed.

Run the following command inside your git repository

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

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