Skip to content

Instantly share code, notes, and snippets.

@rsrchboy
Created April 22, 2014 22:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsrchboy/11197048 to your computer and use it in GitHub Desktop.
Save rsrchboy/11197048 to your computer and use it in GitHub Desktop.
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
@karenetheridge
Copy link

thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment