Skip to content

Instantly share code, notes, and snippets.

@SebCorbin
Forked from alikins/.gitattributes
Last active May 27, 2020 20:43
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 SebCorbin/d196a96b1b5f30f3c3947c3d35fe420b to your computer and use it in GitHub Desktop.
Save SebCorbin/d196a96b1b5f30f3c3947c3d35fe420b to your computer and use it in GitHub Desktop.
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