Bug 339099 - Create Patch (standard format) from History view creates patch relative to a project
Summary: Create Patch (standard format) from History view creates patch relative to a ...
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 0.12   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 358616
  Show dependency tree
 
Reported: 2011-03-07 10:25 EST by Esteban DUGUEPEROUX CLA
Modified: 2014-02-06 09:12 EST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.