I'm wondering if I can tell git to resolve conflicts by appending "their" code blocks after "ours". Does he "know" at all about C-language code blocks ?
Example:
//====== ours ======
....
if(cond1)
{
do_smth();
}
....
//====== their ======
....
if(cond2)
{
do_smth_else();
}
....
Normally such a merge results in a conflict which I would like to resolve automatically as :
//======= merge result ========
if(cond1)
{
do_smth();
}
if(cond2)
{
do_smth_else();
}
Thank you !