* @return IFilePatch2 instance
*/
public static IFilePatch2 createFilePatch(IPath oldPath, long oldDate,
IPath newPath, long newDate, IHunk[] hunks) {
reorder(hunks);
FilePatch2 fileDiff = new FilePatch2(oldPath, oldDate, newPath, newDate);
for (int i = 0; i < hunks.length; i++) {
fileDiff.add((Hunk) hunks[i]);
}
return fileDiff;
}