Skip to content

Instantly share code, notes, and snippets.

@jmoody
Last active June 24, 2023 10:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmoody/20f5a36a8846982817be to your computer and use it in GitHub Desktop.
Save jmoody/20f5a36a8846982817be to your computer and use it in GitHub Desktop.
diffing binary plists and mobileprovisions

~/.gitatrributes

*.plist diff=plist
*.mobileprovision diff=mobileprovision

~/.gitconfig

[diff "plist"]
        textconv = plutil -convert xml1 -o -
        cachetextconv = true
[filter "plist"]
        clean = plutil -convert xml1 -o - -
        smudge = plutil -convert binary1 -o - -
[filter "plist-xml"]
        clean = plutil -convert xml1 -o - -
[filter "plist-bin"]
        clean = plutil -convert binary1 -o - -
[url "git@github.com:"]
  insteadOf = https://github.com/

[diff "mobileprovision"]
  textconv = xcrun security cms -D -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment