When I want to retrieve changes from master on a branch with:
git pull --rebase
and a modification has been done on master on a file I modified in my branch, an auto-merging is done on this file. The resulting file is a mixing of master modifications and branch modifications.
Why do I not have a file with some conflict-marked areas as I expected ?
EDIT Here is the problem description I encountered which is the origin of my question. On a branch B, I have a class C which implements the interface IC. I added locally a method to C. Another person on the same branch push some modifications. One of this modification was : add a method to IC and add an method implementation to C. This method is the method I previously added on my side. After the pull, Git has auto-merged the file C and 2 methods with the same signature existed in the class C. That's why I would like to forbid the auto-merge.