My question is based on the example at: https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
Taken the example:
- Set variable = 2 in Commit C2, then change to variable = 4 in C4 and back to variable = 2 in C5
- Make a
git merge master <branch of iss53>, resulting inMerge made by the 'recursive' strategy. - The variable is 4.
But why?
I expected: As the ancestor sets variable = 2 and the commit (iss53) also sets variable = 2 the result after merge should be 2. Because the common ancestor and the newest version has set variable = 2
Is this behaviour depending on the merge strategy?
edit: I forgot to mention, that I changed variable = 3 in C3. But the result is the same.
