I have one file in master branch like belows:
void func(int a, string b) {
...
if (a == 1) {
...
}
...
}
....
func(1, "test");
...
Then I checkout a new branch b1, and do some work and change the file to :
void func(string c, string b) {
...
...
}
....
func("test", "test");
...
Meanwhile, the master branch has been updated by other guys, so i need to merge this branch (there's some reason i cannot rebase it). Since there's merge conflicts, i add the -X argument:
git merge -X ours master
It works, but with the deleted code segment:
void func(string c, string b) {
...
if (a == 1) {
...
}
...
}
....
func("test", "test");
...
Did I miss some argument when merge?