Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339099

Summary: Create Patch (standard format) from History view creates patch relative to a project
Product: [Technology] EGit Reporter: Esteban DUGUEPEROUX <esteban.dugueperoux>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: angvoz.dev, carolynmacleod4, daniel_megert, jwross, markus.kell.r, remy.suen, tjwatson
Version: 0.12   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 358616    

Description Esteban DUGUEPEROUX CLA 2011-03-07 10:25:35 EST
Build Identifier: 0.12.0.201103040915

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. 

Reproducible: Always

Steps to Reproduce:
1.Create a local git repository with two workspace projects
2.commit changes from these two projects
3.From the history view, create a patch (not git format) from the last commit
Comment 1 Thomas Watson CLA 2011-07-13 17:09:07 EDT
I think it would be good to have eGit be able to create workspace patches when a commit spans multiple projects.
Comment 2 Remy Suen CLA 2011-09-03 18:08:13 EDT
Now patches are created relative to the repository's root. Depending on how your projects are setup, you can have the patch wizard ignore some leading segments and get it to apply to multiple projects in one go.
Comment 3 Carolyn MacLeod CLA 2011-09-19 12:46:08 EDT
EGit also needs to be able to apply multiple-project patches, which it currently does not do properly (even if I select the "Apply the patch to the workspace root" option in the Apply Patch dialog).
Comment 4 Remy Suen CLA 2011-09-19 12:50:27 EDT
(In reply to comment #3)
> EGit also needs to be able to apply multiple-project patches, which it
> currently does not do properly (even if I select the "Apply the patch to the
> workspace root" option in the Apply Patch dialog).

EGit does not let you create workspace patches at the moment. You can probably workaround the problem by truncating leading path segments. This is what I do right now. Though this won't work unless you're generating patches from a recent EGit build (and not the one from Indigo GA).
Comment 5 Markus Keller CLA 2011-10-21 06:28:17 EDT
See also bug 341036.