Consider this repository: Main Branch A holds a single source file. Branch B is forked off A. On Branch B I remove some lines of code. I merge A to B and resolve any conflicts.
I would like to configure GIT automated merge resolution for my project when merging A into B such that:
- Any further modifications to the lines deleted in B from within A will be auto discarded on later merges, i.e. remember that the lines were deleted in B. At the moment I get a merge conflict every time those deleted lines are modified in A and then merged.
- Ideally if new lines are added in A and in B in the same place in the file, e.g. the end, the merge will be auto resolved by laying them out one beneath the other.
I appreciate that sort of behaviour would often be undesirable when merging code, but we are dealing with an XML config format where these cases are very common.
Is it possible to configure GIT to accommodate that logic?