Community
Participate
Working Groups
Build Identifier: 0.11.1 Need to create unified patches as it is possible with CVS. Reproducible: Always Steps to Reproduce: 1. Open a project 2. Right click > Team 3. "Create patch..." is missing compared to CVS.
this is an enhancement request valid for all platforms
Any plans to add this soon?
not having this feature is at least for me a problem when I'd like to easily share a patch e.g. through bugzilla and is a clear functionality loss compared to other VCS. I'd be even willing to contribute this or is someoneelese already looking into it?
Create patch isn't as straightforward in git as it is in CVS. It begs the question of what your patch is against. Often the user submitting the patch is on their own private feature branch, and what they really want is a patch containing the specified commit rebased against our branch... See also bug 354800
Not sure whether this is even possible with Git, but what I'm looking for is a simple way to put my outgoing (uncommitted) changes (across projects and across repositories) into a single patch file.
http://wiki.eclipse.org/Platform-releng/Git_Workflows#Create_a_patch shows a workaround for creating a patch for changes from a single Git repository. But what we really need is support for "workspace patches" as available from CVS. AFAIK, the Apply Patch wizard currently doesn't really care about the base version on which a patch was created. It just applies the patch to the workspace. So for a workspace patch, the base version should always be the origin's HEAD of the corresponding branch. A workspace patch includes comments like this to tell the Apply Patch wizards about the target projects for the individual diffs (to support cross-repository patches): ### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core This is a major regression for former CVS users.
(In reply to comment #6) > This is a major regression for former CVS users. I agree. I think that the current bug severity may be misleading for EGit guys. This is probably the reason why no-one responded yet.
Ping!
I'm working on this.
First cut: http://egit.eclipse.org/r/4816 , adding the action to the Team menu. No workspace patches yet, just git style diffs. Let me know what do you think by leaving a comment on the change.
I'd love to use DiffCommand in the patch but I'm afraid bug 354919 had to be fixed first.
*** Bug 361502 has been marked as a duplicate of this bug. ***
(In reply to comment #11) > I'd love to use DiffCommand in the patch It's bug 367623.
http://egit.eclipse.org/r/#change,4816 merged as 3656b0aaf82c0aea5599fc957927c91e7cfe2602
Marking as fixed, see comment above. Filed bug 367735 for adding "workspace patches" support.
Verified in 1.3.0.201201041914. Filed bug 367928 for the missing mnemonic in the menu label.