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

Bug 363127

Summary: Create WS patch from 2 arbitrary commits
Product: [Technology] EGit Reporter: Caspar D. <caspar_d>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r, robin, stepper
Version: 1.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Caspar D. CLA 2011-11-08 03:18:35 EST
With Git it's trivially easy to create diffs covering the differences
between 2 arbitrary commits:

# git diff <commit1> <commit2> > mypatch.txt

The resulting mypatch.txt is of course perfectly usable by GNU patch
or any patch tool capable of interpreting a standard unified diff. But
Eclipse wants a diff in the 'Eclipse patch format', and for that I need
EGit.

However, from the EGit user guide it seems that a patch can only be created
to cover a single commit. This is of little practical value, IMO, because
it's likely that someone working with a DVCS will make many small commits
on a dev branch before he's ready to send a patch to someone else.

I'm therefore requesting additional functionality that will generate
an Eclipse WS patch covering the differences between 2 arbitrary Git
commits.
Comment 1 Markus Keller CLA 2012-02-01 10:21:28 EST
This bug is a mix of bug 368621 (patch between 2 commits) and bug 367735 (workspace patches).
Comment 2 Robin Stocker CLA 2012-11-06 17:16:44 EST
Creating a patch between 2 commits is tracked in bug 368621, please see there.

*** This bug has been marked as a duplicate of bug 368621 ***