Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'd like to revision-control my mail configuration (both the preferences and the mailbox rules -- especially the latter) but Mail insists on rewriting its preferences as binary plist files as soon as it opens. I'd like to have it keep them in text or XML format, which would allow me to keep them in revision control in a meaningful way. Yes, I could keep them as binaries, but those are awful and result in a lot of ugly changesets.

share|improve this question
1  
Which revision control system? There may be a solution here. –  Jason Salaz Jan 9 '12 at 17:31

1 Answer 1

Probably not, but you could use plutil to convert the binary plist to XML and keep the results in your revision control system.

share|improve this answer
    
git. So, presumably, it'd be possible to do it with a pre-commit and post-update hook? That might be interesting... –  Chris R Jan 9 '12 at 19:15
    
However, I can't see a way to do this from the git hooks docs at book.git-scm.com/5_git_hooks.html; maybe I'm missing something? –  Chris R Jan 9 '12 at 19:18
    
I would keep the XML files somewhere and write an install/build script to convert them to binary and to install them in Preferences etc. –  Mark Sep 13 '13 at 20:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.