As far as I know, there is no way to increase the context lines during the merge. The patience restraining algorithm is supposed to handle your use case better. The git-merge (1) manual page describes this as follows:
With this option, merge-recursive spends a little extra time avoiding discrepancies that sometimes arise from unimportant ones (for example, curly braces from various functions). Use this when branches to be merged wildly diverge.
Since this looks exactly the same as in the situation you are describing, patience seems specifically designed to help you. You can try this on a folding branch, for example:
git checkout -b temp_merge_branch master git merge
If the merge works cleanly, you can quickly forward the main branch with the results. If not, you can simply throw away the temporary branch and look for other alternatives.
source share