Reputation: 16768
I am managing the source code of a project in my company with Git (GitLab) to be precise. Two developers work on the project, create a branch for every task then create a merge request. I mostly merge these directly via the UI which should be the same as doing this in the command line:
git checkout master
git merge --no-ff 1224-cool-feature-branch
From time to time I have seen small features or parts of pages disappear.
Consider the following case
FeatureA
FeatureB
foobar.txt
and commits to FeatureA
merge --no-ff
using the default recursive strategyfoobar.txt
and commits to Feature Bmerge --no-ff
using the default recursive strategy without conflictIs it possible that changes to foobar.txt
from FeatureA
have been overwritten without creating a conflict?
Upvotes: 0
Views: 121
Reputation: 9248
I believe the answer is "no". The file is merged using the conventional 3 way merge which should apply change if they are distant enough from each other or report a conflict, there is no other option.
There could be some issues with this approach, see for example http://r6.ca/blog/20110416T204742Z.html , but I cannot imagine how any corner case would result in silent edit reversal.
Upvotes: 1