Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » How to configure default merge strategy?
How to configure default merge strategy? [message #753901] Sun, 30 October 2011 08:39 Go to next message
Eclipse UserFriend
Hi,

I committed two changes to my "master" and then pulled from the remote repository. After this operation pushing was prohibited because the merge operation during the pull was not able to merge the changes (see attached images). I found out that egit per default uses "resolve" as merge strategy. Trying a "merge" on the git bash was able to merge the different changes because it was using "recursiv" as merge strategy.

Is there a way to change the default merge strategy egit uses?

Thanks in advance.

Cheers,

Martin
Re: How to configure default merge strategy? [message #753913 is a reply to message #753901] Sun, 30 October 2011 10:46 Go to previous messageGo to next message
Eclipse UserFriend
Martin Fluegge skrev 2011-10-30 13.3925:
> Hi,
>
> I committed two changes to my "master" and then pulled from the remote repository. After this operation pushing was prohibited because the merge operation during the pull was not able to merge the changes (see attached images). I found out that egit per default uses "resolve" as merge strategy. Trying a "merge" on the git bash was able to merge the different changes because it was using "recursiv" as merge strategy.
>
> Is there a way to change the default merge strategy egit uses?
>

At the moment EGit does not have the recursive merge strategy. The reason
is that initially we did not have rename detection. Now, we do. so adding
the recursive merge should be fairly simple.

-- robin
Re: How to configure default merge strategy? [message #753921 is a reply to message #753913] Sun, 30 October 2011 11:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi Robin,

thanks for your quick response. Shall I file a bugzilla for this topic?

Cheers,

Martin

Am 30.10.2011 15:46, schrieb Robin Rosenberg:
> Martin Fluegge skrev 2011-10-30 13.3925:
>> Hi,
>>
>> I committed two changes to my "master" and then pulled from the remote
>> repository. After this operation pushing was prohibited because the
>> merge operation during the pull was not able to merge the changes (see
>> attached images). I found out that egit per default uses "resolve" as
>> merge strategy. Trying a "merge" on the git bash was able to merge the
>> different changes because it was using "recursiv" as merge strategy.
>>
>> Is there a way to change the default merge strategy egit uses?
>>
>
> At the moment EGit does not have the recursive merge strategy. The reason
> is that initially we did not have rename detection. Now, we do. so adding
> the recursive merge should be fairly simple.
>
> -- robin
>
>
Re: How to configure default merge strategy? [message #753926 is a reply to message #753921] Sun, 30 October 2011 13:08 Go to previous messageGo to next message
Eclipse UserFriend
Am 30.10.2011 16:40, schrieb Martin Flügge:
> Hi Robin,
>
> thanks for your quick response. Shall I file a bugzilla for this topic?
I found this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=354099

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> Cheers,
>
> Martin
>
> Am 30.10.2011 15:46, schrieb Robin Rosenberg:
>> Martin Fluegge skrev 2011-10-30 13.3925:
>>> Hi,
>>>
>>> I committed two changes to my "master" and then pulled from the remote
>>> repository. After this operation pushing was prohibited because the
>>> merge operation during the pull was not able to merge the changes (see
>>> attached images). I found out that egit per default uses "resolve" as
>>> merge strategy. Trying a "merge" on the git bash was able to merge the
>>> different changes because it was using "recursiv" as merge strategy.
>>>
>>> Is there a way to change the default merge strategy egit uses?
>>>
>> At the moment EGit does not have the recursive merge strategy. The reason
>> is that initially we did not have rename detection. Now, we do. so adding
>> the recursive merge should be fairly simple.
>>
>> -- robin
>>
>>
Re: How to configure default merge strategy? [message #756143 is a reply to message #753926] Fri, 11 November 2011 03:45 Go to previous messageGo to next message
Eclipse UserFriend
Is recursive merge strategy planned for 1.2.0 ? it would really help to handle merges with renamed files.
Re: How to configure default merge strategy? [message #756178 is a reply to message #756143] Fri, 11 November 2011 07:01 Go to previous messageGo to next message
Eclipse UserFriend
1.2 is planned for Dec 15 and I am not aware that anyone is currently working on this
Re: How to configure default merge strategy? [message #760795 is a reply to message #753901] Mon, 05 December 2011 05:02 Go to previous message
Eclipse UserFriend
Just to add some more pointers to this topic: the bugzilla that I guess is watching the progress on the recursive merging strategy (which should handle merging better than the resolve strategy) is here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=359951
Previous Topic:gui nit in history view
Next Topic:Staging view shows unchanged files
Goto Forum:
  


Current Time: Sat Jun 21 08:00:55 EDT 2025

Powered by FUDForum. Page generated in 0.26916 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top