I'm trying to script merging branches with pom.xml files that usually only conflict with changes in the version number but often have other non-conflicting changes in them. If I use "git checkout --ours" even non-conflicting changes are skipped is there a workaround for this?
Example of what I mean:
<xml>
<thing>
<<<<<<< HEAD
<version>1.1.0</version>
=======
<version>1.2.0</version>
>>>>>>> origin/remote_branch
</thing>
<other>
<!-- merged changes -->
</other>
</xml>
I want to achieve with something like "git checkout --ours"
<xml>
<thing>
<version>1.1.0</version>
</thing>
<other>
<!-- merged changes -->
</other>
</xml>
Is that possible?