{"id":12846,"date":"2015-11-14T10:52:29","date_gmt":"2015-11-14T15:52:29","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=12846"},"modified":"2015-11-14T10:52:29","modified_gmt":"2015-11-14T15:52:29","slug":"git-diff-for-binary-property-list-files","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/11\/14\/git-diff-for-binary-property-list-files\/","title":{"rendered":"Git Diff for Binary Property List Files"},"content":{"rendered":"<p><a href=\"http:\/\/confusatory.org\/post\/133141617492\/git-diff-for-binary-apple-property-list-files\">Christopher Bowns<\/a>:<\/p>\n<blockquote cite=\"http:\/\/confusatory.org\/post\/133141617492\/git-diff-for-binary-apple-property-list-files\"><p>In the same vein as <a href=\"http:\/\/blog.xk72.com\/post\/31456986659\/diff-strings-files-in-git\">diffing UTF-16 .strings files in git<\/a>:<\/p><p>It&rsquo;s easy to set up <code>git<\/code> to show diffs for binary <code>.plist<\/code> files.<\/p><\/blockquote>\n<p>The commands are:<\/p>\n<pre>git config --global diff.plist.textconv \"plutil -convert xml1 -o -\"\necho \"*.plist diff=plist\" &gt;&gt; .gitattributes<\/pre>","protected":false},"excerpt":{"rendered":"<p>Christopher Bowns: In the same vein as diffing UTF-16 .strings files in git:It&rsquo;s easy to set up git to show diffs for binary .plist files. The commands are: git config --global diff.plist.textconv \"plutil -convert xml1 -o -\" echo \"*.plist diff=plist\" &gt;&gt; .gitattributes<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[377,31,30,71,376],"class_list":["post-12846","post","type-post","status-publish","format-standard","hentry","category-technology","tag-git","tag-ios","tag-mac","tag-programming","tag-versioncontrol"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=12846"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12846\/revisions"}],"predecessor-version":[{"id":12847,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12846\/revisions\/12847"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=12846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=12846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=12846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}