Skip to content

Instantly share code, notes, and snippets.

@jmoody
Last active June 24, 2023 10:13
Show Gist options
  • 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 "[email protected]:"]
  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