Sometimes you want to ignore certain files when you run git diff, but you still want to check them
in, which means you can't capitalize on .gitignore.
This guide is here to help.
Execute the following once (assuming you are using a mac, otherwise, correct the path to your true):
git config diff.nodiff.command /usr/bin/true
optionally add --global for all repos.
Every time you want to ignore a new file/file regex:
Add a new line to your .git/info/attributes (create one if there ain't one):
{file_regex} diff=nodiff
README.md diff=nodiff
TITANIUM_GUIDE.md diff=nodiff
WEB_GUIDE.md diff=nodiff
dist/** diff=nodiff
docs/0_notice.md diff=nodiff
src/titanium/BranchSDK/android/src/io/branch/sdk/BranchSDKModule.java diff=nodiff
src/titanium/BranchSDK/iphone/Classes/IoBranchSdkModule.m diff=nodiff
test/branch-deps.js diff=nodiff
beautiful. we should add this to the wiki