I was just about to start a git branch off the master branch to add some functionality to my application, that would also involve some additions to the interface.
However, i already have a branch for some other functionality that also involves some interface additions.
Will i be able to merge both those branches to master when i finish with them? Is there some good practice to, probably, structure xib-files in a certain way that would make it easy to merge afterwards?
You will most likely have a conflict, if the modified lines (involved in the tab definitions) are the same.
You will have 4 tabs only if, during the manual merge resolution, you mistakingly leave an extra tab definition.
See Painless Merge Conflict Resolution in Git for a great article on merge resolution.
That being said, regarding xibs specifically, its presentation seems good:
But this thread summarizes the actual feeling:
That would leave you with the extra step, before adding your merge resolution in case of conflict, to open the modified
.xibfile in your XCode4 editor and check if everything still looks good.Once that visual check is done, record the merge resolution through
rerere, and you will have potentially automatic resolution in the future.