I have to find a situation where git merge the file successfully but there is an compilation error in the program after merging.
Is there any way to do that!!
I know git uses the longest common subsequence for merging.
I have done a lot of trial but not able to find.
If anyone know.... please help
Git merges can occasionally produce non-working code without any conflicts arising. Imagine the following:
foo in the code he's working on.foo's function signature, or renames/deletes the function.Now A's function call is incompatible with B's change, but git doesn't know that because they are in separate modules.
What A (you) should do in this case is review the changes that were merged in, and fix the code as appropriate. (This is also why you should keep feature branches short where possible, especially if you are trying to submit a patch upstream).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With