Skip to content

Instantly share code, notes, and snippets.

@rsrchboy rsrchboy/git-config
Created Apr 22, 2014

What would you like to do?
git diff 02packages.txt.gz in a human-meaningful way :)
# in .git/config
[diff "gz"]
# behold, the power of zcat!
textconv = zcat
# and the lovely laziness!
cachetextconv = true
binary = true
# 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
You can’t perform that action at this time.