Reputation: 556
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:
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?
Upvotes: 1
Views: 423
Reputation: 28180
I have not used this command myself, but there is this git rerere command that is supposed to keep a record of already resolved conflicts and reapply them again later. I am not sure if this is a solution to your problem, but I suggest examining it.
If rerere does not work, I think you should focus on getting/creating an XML aware merge handler. Merging XML files is a non-trivial task, but you might have luck with some of the options available.
Upvotes: 1