why should .pbxproj file be treated as binary in version control systems?

nav1729

In few places its been mentioned that .pbxproj file should be committed/imported as binary in cvs or git. it looks like script file in text format. what are reasons behind this suggestion that it should be treated as binary?

VonC

As mentioned here, pbxproj is not really mergeable, being a complex property list managed as JSON.

The usual setting is in a .gitattributes:

*.pbxproj -crlf -diff -merge

As explained here:

This prevents Git from trying to fix newlines, show it in diffs, and excludes it from merges.

The other approach is:

*.pbxproj binary merge=union

As documented here, this didn't work well.

The problem was that braces would become out of place on a regular basis, which made the files unreadable. It is true that tho does work most of the time - but fails maybe 1 out of 4 times.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Can / Should I add kotlinc.xml to my version control ignore file?

how to edit binary file on the unix systems

Should .class files be put under version control?

How do version control systems generate original file with a long history so fast?

Should composer.lock be committed to version control?

Should the .gradle folder be added to version control?

Which Visual C++ file types should be committed to version control?

Why should you include Podfile.lock under version control?

Should I git ignore xcodeproject/project.pbxproj file?

What should I use for local version control?

How to organize code with random numbers in version control systems for analysis?

Do version control systems use diffs to store binary files?

Should yarn.lock be treated as a binary file in git?

Why everyone says I should include gradlew in my source control if its version is explicitly on build.gradle?

Should you use version control for ctags?

Should Active Storage binary variant files get pushed to version control?

Why does Html Audio control fails in html if served rather than treated as a regular file

False should not be treated as 0

Why is my text-file being treated as a single string?

How to version control a directory with only binary files?

Should EFCore migrations be committed to version control?

Should I add keystore files to version control?

Why is "Everything is a file" unique to the Unix operating systems?

I have deleted my project.pbxproj file using git checkout -- <file>. Should I delete the branch locally and pull from origin?

control systems

Why is 'binary access meaningless on UNIX systems'?

Keep binary files on control version system

Is there a convention for git version control between multiple operating systems in R?

Should CMSIS libraries be included in version control?