Skip to main content


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