Skip to content

Instantly share code, notes, and snippets.

@sprhawk
Created May 24, 2012 03:06
Show Gist options
  • Star 35 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save sprhawk/2779208 to your computer and use it in GitHub Desktop.
Save sprhawk/2779208 to your computer and use it in GitHub Desktop.
git diff localizable.strings
(from :http://www.entropy.ch/blog/Developer/2010/04/15/Git-diff-for-Localizable-strings-Files.html)
First, add this to the project’s .git/info/attributes file:
+
*.strings diff=localizablestrings
(Unfortunately you do have to add it to every project, there doesn’t seem to be a global attributes configuration file)
Second, add this to your ~/.gitconfig file:
+
[diff "localizablestrings"]
textconv = "iconv -f utf-16 -t utf-8"
@AllDmeat
Copy link

AllDmeat commented Oct 29, 2019

Works like a charm with Tower, thx.

Here's my .gitattributes located in project's root:

*.strings diff=localizablestrings
[diff "localizablestrings"]
	textconv = "iconv -f utf-16 -t utf-8"

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