29 September 2019

So I use the program highland to write screenplays and it has it’s own .highland file format which works fine, but when you check in the .highland file format you don’t get “diffs” in your git checkins. I did some research and came up with this solution.

Step 1:

Create a file called .gitconfig in your user’s $HOME folder… e.g. ${HOME}/.gitconfig

[diff "zip"]
textconv = unzip -c -a

Step 2:

Create a single text file in your git repo and name it “.gitattributes”. Enter the following:

*.highland diff=zip

Checking the .gitattributes file in will show diffs in the .highland files in the repo.