Created
April 22, 2014 22:49
-
-
Save rsrchboy/11197048 to your computer and use it in GitHub Desktop.
git diff 02packages.txt.gz in a human-meaningful way :)
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
# in .git/config | |
[diff "gz"] | |
# behold, the power of zcat! | |
textconv = zcat | |
# and the lovely laziness! | |
cachetextconv = true | |
binary = true |
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
# in/as .git/info/attributes | |
# make git recognize *.txt.gz files as compressed text, such that git knows to use the "gz" diff driver on them | |
*.txt.gz diff=gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you :)