Merging 3 XML files with kdiff3 (Command Line)
Asked Answered
D

1

2

I need 3-way-merge of xml file, for this I am using kdiff3. The problem I am facing with kdiff3 is whenever there is the conflict in merging, kdiff3 is opening the kdiff3-GUI tool and ask to resolve a conflict. Kdiff3 is not saving the file with the conflict. How can I ask kdiff3 to save the file with conflict?

I am using the following command

kdiff3 --auto -m -o merged.xml base.xml  1.xml 2.xml
Distributive answered 26/11, 2018 at 10:8 Comment(0)
N
2

Same can be achieved by git. Find below the command for this,

git merge-file -p mine.txt parent.txt yours.txt

-p Send results to standard output instead of overwriting <current-file>.
Nessus answered 4/12, 2018 at 14:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.