I am trying to figure out what is happening when I am merging git branches. I have a branch that has diverged ( feature_1 ) from the main branch ( develop ). I do a merge
git merge develop
and i get some expected conflicts
CONFLICT (add/add): Merge conflict in res/values/dimens.xml
Automatic merge failed; fix conflicts and then commit the result.
the status of the that file is this:
$ git diff res/values/dimens.xml
diff --cc res/values/dimens.xml
index ec31f04,554d1e7..0000000
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@@ -1,5 -1,4 +1,11 @@@
++<<<<<<< HEAD
+<resources>
+ <dimen name="left_nav_side">120dip</dimen>
+ <dimen name="left_nav_vertical_margin">30dip</dimen>
+ <dimen name="third_left_nav_vertical_margin">10dip</dimen>
++=======
+ <?xml version="1.0" encoding="utf-8"?>
+ <resources>
+ <dimen name="round_corner">4dp</dimen>
++>>>>>>> develop
</resources>
it seems there are two types of "diffs" in this file, the ones with the pluses/minuses and the one's with the arrows with "HEAD". When I open it up in a merge tool like meld i get something that I don't think is right:
As you can see the working tree changes show up as a diff and show the markers as part of the file which I don't think they should. I get something similar with the IntelliJ "resolve conflicts" tool. Can someone tell me what I have done wrong or what I am missing? Or maybe can you just tell me what is going on in the file?