Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Create Patch (standard format) from History view creates patch relative to a project
Create Patch (standard format) from History view creates patch relative to a project [message #658174] Mon, 07 March 2011 09:55 Go to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi,

I want to create a patch in standard format (not git format) from a
local commit, then I create one from the history view by taking the last
local commit (a commit recording changes from several workspace
projects). The generated patch has path relative to project then I can't
apply it to a svn working copy (for example). While with the svn team
provider we have a option to create/apply a patch to a specific project
or to the whole workspace.
It is a know problem or a mistake of my part?

Regards.
Re: Create Patch (standard format) from History view creates patch relative to a project [message #658229 is a reply to message #658174] Mon, 07 March 2011 13:55 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Esteban,

this is a missing feature in EGit. There was not much focus on patch support
in EGit so far. A reason could be that the EGit development itself does not
use patch files and therefore the developers are not familiar with the most
common use cases.

It would be very helpful if you could open a bug at
https://bugs.eclipse.org

Thanks and Regards,
Stefan


"Esteban DUGUEPEROUX" <dugueperoux.esteban@free.fr> wrote in message
news:il29lk$690$1@news.eclipse.org...
> Hi,
>
> I want to create a patch in standard format (not git format) from a local
> commit, then I create one from the history view by taking the last local
> commit (a commit recording changes from several workspace projects). The
> generated patch has path relative to project then I can't apply it to a
> svn working copy (for example). While with the svn team provider we have a
> option to create/apply a patch to a specific project or to the whole
> workspace.
> It is a know problem or a mistake of my part?
>
> Regards.
Re: Create Patch (standard format) from History view creates patch relative to a project [message #658259 is a reply to message #658229] Mon, 07 March 2011 15:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: esteban.dugueperoux.obeo.fr

On 07/03/2011 14:55, Stefan Lay wrote:
> Hi Esteban,
>
> this is a missing feature in EGit. There was not much focus on patch
> support in EGit so far. A reason could be that the EGit development
> itself does not use patch files and therefore the developers are not
> familiar with the most common use cases.
>
> It would be very helpful if you could open a bug at
> https://bugs.eclipse.org
>
> Thanks and Regards,
> Stefan
>
>
> "Esteban DUGUEPEROUX" <dugueperoux.esteban@free.fr> wrote in message
> news:il29lk$690$1@news.eclipse.org...
>> Hi,
>>
>> I want to create a patch in standard format (not git format) from a
>> local commit, then I create one from the history view by taking the
>> last local commit (a commit recording changes from several workspace
>> projects). The generated patch has path relative to project then I
>> can't apply it to a svn working copy (for example). While with the svn
>> team provider we have a option to create/apply a patch to a specific
>> project or to the whole workspace.
>> It is a know problem or a mistake of my part?
>>
>> Regards.
>
Hi,

https://bugs.eclipse.org/bugs/show_bug.cgi?id=339099

Regards
Re: Create Patch (standard format) from History view creates patch relative to a project [message #658294 is a reply to message #658174] Mon, 07 March 2011 17:37 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
On 2011-03-07 10.55, Esteban DUGUEPEROUX wrote:
> Hi,
>
> I want to create a patch in standard format (not git format) from a
> local commit, then I create one from the history view by taking the last
> local commit (a commit recording changes from several workspace
> projects). The generated patch has path relative to project then I can't
> apply it to a svn working copy (for example). While with the svn team
> provider we have a option to create/apply a patch to a specific project
> or to the whole workspace.
> It is a know problem or a mistake of my part?

The git format patches generated by todays EGit don't use any extensions
and work with any decent patch tool I know of. Sometimes you have to
tell the tool to drop one level of directoris (the a/ b/ part), some
figure it out. I'm not sure about SVN, but the default patch tool in
Eclipse works.

-- robin
Re: Create Patch (standard format) from History view creates patch relative to a project [message #658359 is a reply to message #658294] Tue, 08 March 2011 07:46 Go to previous message
Eclipse UserFriend
Originally posted by: esteban.dugueperoux.obeo.fr

On 07/03/2011 18:37, Robin Rosenberg wrote:
> On 2011-03-07 10.55, Esteban DUGUEPEROUX wrote:
>> Hi,
>>
>> I want to create a patch in standard format (not git format) from a
>> local commit, then I create one from the history view by taking the last
>> local commit (a commit recording changes from several workspace
>> projects). The generated patch has path relative to project then I can't
>> apply it to a svn working copy (for example). While with the svn team
>> provider we have a option to create/apply a patch to a specific project
>> or to the whole workspace.
>> It is a know problem or a mistake of my part?
>
> The git format patches generated by todays EGit don't use any extensions
> and work with any decent patch tool I know of. Sometimes you have to
> tell the tool to drop one level of directoris (the a/ b/ part), some
> figure it out. I'm not sure about SVN, but the default patch tool in
> Eclipse works.
>
> -- robin

Yes it works thanks for this info.

Regards
Previous Topic:Can EGit support projectSet.psf?
Next Topic:JGit JavaDoc and get log only certain range
Goto Forum:
  


Current Time: Tue Mar 31 12:29:15 GMT 2020

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

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

Back to the top