I recently participated in a Java project at work: we use MyEclipse for the IDE and Subclipse for integrating version control. Since I am new to the project, I am currently submitting any changes that I make in the form of patches so that other team members can analyze my changes and decide whether to transfer them to the trunk. However, when I create a patch using the Create Patch option in the Command menu, the resulting patch contains the absolute paths to the files that were changed. Since I want to be able to email these patches to other team members and just apply patches to my working folder, I would like to create patches containing only relative file paths (I am running Ubuntu and currently my working copy is in my home foldertherefore absolute paths are particularly annoying).
Is there a way to configure Eclipse / Subclipse for this? I did a search in the Eclipse settings and clicked the Create Patch wizard several times, but could not find anything like this. I am currently manually editing patch files using a text editor to convert absolute file paths to relative paths. If Subclipse cannot do this, I am open to other suggestions.
EDIT . I know that it is possible to ignore a certain number of segments in file name pools when you try to apply a patch from Eclipse, but I was curious if there was a way to avoid this to reduce the number of steps involved in applying the fixes. By manually editing the paths to make them relative to the project root folder, the end user must necessarily use the patch at the project root folder level. I would like to have this simplicity without having to manually edit the patch files.
source
share