I found a great Git function, which will unzip a file and use the uncompressed result in a diff, using .gitattributes, plus a change to your local repo config or to the global git config. This is how Simulink *.slx files are - they are zip compressed XML files, basically (maybe with some other added stuff).
However, this requires me to add a .gitattributes to every repo that needs this update - and it's config.
The particular changes needed are:
Add the following line to
.gitattributes
:*.slx diff = slx
Add the following lines to the local repo config (one method:
git config -e
):[diff "slx"] textconv = unzip -c -a
Question: Is there a way to apply the same function globally to any repo through the global config file, or another method?
The goal would be that if I set up the global function locally, Git would know to uncompress any *.slx file in any repo.