Fix IllegalArgumentException on create Eclipse workspace patch
commit65a9fa77d6849a40aea35e116e17e0708b278873
authorReiner Hille-Doering <reiner.hille-doering@sap.com>
Thu, 6 Nov 2014 12:04:00 +0000 (6 13:04 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 7 Nov 2014 15:10:21 +0000 (7 16:10 +0100)
treedf0595a833c655a7ac039cc0d2142ba989a69705
parentceee305066e7e97eb3385bc0a3a687ac2b1327e9
Fix IllegalArgumentException on create Eclipse workspace patch

Creating a patch in format "Eclipse Workspace" sometimes does not work.
The wizard simply doesn't do anything and an IllegalArgumentException is
thrown.

The issue happens in two cases:
1. One of the files in the commit is NOT contained in any Eclipse
project.
2. One of the files in the commit is contained in MORE THAN ONE Eclipse
project.

There is no reason not to create a patch in the second case. In fact it
doesn't matter from which project the file is considered.

Bug: 450283
Change-Id: Ifc03b9d105122785713cad20291212ee75849a50
Signed-off-by: Reiner Hille-Doering <reiner.hille-doering@sap.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.core/src/org/eclipse/egit/core/op/CreatePatchOperation.java