This question applies to any situation in which one is using Git with other team mates. Lets say we both are changing the same file, but not in such a way to cause a conflict.
Lets say I have the code:
#define client_view 500
#define server_view 1000
#define client_destroy 750
#define server_destroy 1250
I'm asked to change client_view
and related, my colleague is asked to change server_view
.
I change it client_view
to 570
, e.g. I think in this hypothetical scenario 570
is a good value. Likewise, my colleague chooses 1066
for server_view
.
When we both pull request, and the manager merges these to master,
What will it display?
#define client_view 570
#define server_view 1000
#define client_destroy 750
#define server_destroy 1250
or
#define client_view 500
#define server_view 1066
#define client_destroy 750
#define server_destroy 1250
or
#define client_view 570
#define server_view 1066
#define client_destroy 750
#define server_destroy 1250
I ask this because I want to know if my changes will overwrite my colleagues changes. I have never sent a pull request on the same file someone else has worked on, so I don't know the answer, and couldn't find one on SO or other.