Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Fwd: Should I be able to Merge content when Synchronizing?

>-----Original Message-----
>From: egit-dev-bounces@xxxxxxxxxxx [mailto:egit-dev-bounces@xxxxxxxxxxx] On Behalf Of Christian
>Halstrick
>Sent: Wednesday, April 06, 2011 6:49 AM
>To: Manuel Doninger
>Cc: EGit developer discussion
>Subject: Re: [egit-dev] Fwd: Should I be able to Merge content when Synchronizing?
>
>Hi,
>
>be careful that you don't have overlooked one case here: the native
>git mergetool will only run on conflicting files. What is with files
>which standard git merge has merged successfully without reporting a
>conflict? Do you want to trust the results of a succesful text merge?
>Or do you always want to run your tool to produce the merge results?
>In the latter case you need a different merge-driver and not a
>different merge-tool (not supported yet by JGit). There are merge
>strategies in JGit which will never try to create new content by
>textual-merge algorithms. But the problem could be that only for
>certain content types (your xml files) you want this merge algorithm.
>For other content (like c/java source code) you may still want good
>textual merge algorithms. Right?

This is _exactly_ my problem.  

If there are only differences in the incoming version then there is 
effectively no merge required so a replacement of the current with 
the incoming is appropriate.  

If there is any sort of difference between the current and incoming 
then there may be no textual conflict, but there is a 'model' conflict
that I want to resolve through my comparator.

Thanks,
 Thomas




Back to the top