I work with .xib files which are XML. Most often, I want to treat them as a binary file, because changes tend to be non-human-readable and spread over many parts of the file. Thus, I've set up my .git/info/attributes file like so:
*.xib -diff
So far so good, but sometimes I do want to see the full diff. Currently, I have to go into the .gitattributes
and remove the *.xib rule. Lame! What I'd really like is to be able to use an alias (e.g. git fulldiff
) or a git-diff argument (e.g. git diff --xib
) to let it know that, no, in this case it should treat *.xib files like normal. Or maybe just ignore all attributes, since I don't have any other attributes in that file as of now.
How do I do this?