Instantly share code, notes, and snippets.

Embed
What would you like to do?
po/pot file attributes for textconf and diff (ie, make git diff on gettext files less useless)
# From http://stackoverflow.com/questions/2006351/gettext-po-files-under-version-control/11291001#11291001
[diff "msgcat"]
textconv = msgcat --no-location --no-wrap --sort-output
# ~/.config/git/attributes
*.pot diff=msgcat
*.po diff=msgcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment