With BC3 pro I need a script or command line interface call that can merge two branches of a file from a common ancestor. Preferably I'd like it to run silently and not open the application.
A directory contains AncestorTemplate.txt, AncestorModified.txt, and NewTemplate.txt. AncestorModified.txt is an edited version of AncestorTemplate.txt with some inline changes. NewTemplate.txt is an edited version of AncestorTemplate.txt with lines inserted and added.
I need a way to apply the differences between AncestorTemplate.txt and AncestorModified.txt to the NewTemplate.txt such that I can get a merged output file NewModified.txt containing all the changes.
I tried finding the differences and outputting a patch file and then applying the patch file to the NewTemplate.txt, but I'm thinking it might be better to go straight to attempting a direct merge of AncestorModified.txt and NewTemplate.txt, ignoring that they share the common AncestorTemplate.txt simply because I'm not likely to run into merge conflicts.
A directory contains AncestorTemplate.txt, AncestorModified.txt, and NewTemplate.txt. AncestorModified.txt is an edited version of AncestorTemplate.txt with some inline changes. NewTemplate.txt is an edited version of AncestorTemplate.txt with lines inserted and added.
I need a way to apply the differences between AncestorTemplate.txt and AncestorModified.txt to the NewTemplate.txt such that I can get a merged output file NewModified.txt containing all the changes.
I tried finding the differences and outputting a patch file and then applying the patch file to the NewTemplate.txt, but I'm thinking it might be better to go straight to attempting a direct merge of AncestorModified.txt and NewTemplate.txt, ignoring that they share the common AncestorTemplate.txt simply because I'm not likely to run into merge conflicts.
Comment