Created
November 21, 2013 15:11
-
-
Save hfs/7583242 to your computer and use it in GitHub Desktop.
Teach git how to diff zip files by running "unzip -c" on both of them and then diffing the output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd $(git rev-parse --show-toplevel) || exit 128 | |
echo "*.zip diff=zip" >> .gitattributes | |
git config diff.zip.textconv "unzip -c -a" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment