String projectRelativeOldPath = getProjectRelativePath(db, getOldPath());
d.append("diff --git ").append(projectRelativeOldPath).append(" ") //$NON-NLS-1$ //$NON-NLS-2$
.append(projectRelativeNewPath).append("\n"); //$NON-NLS-1$
final ObjectId id1 = getBlobs()[0];
final ObjectId id2 = getBlobs()[1];
final FileMode mode1 = getModes()[0];
final FileMode mode2 = getModes()[1];
if (id1.equals(ObjectId.zeroId())) {
d.append("new file mode " + mode2).append("\n"); //$NON-NLS-1$//$NON-NLS-2$
} else if (id2.equals(ObjectId.zeroId())) {
d.append("deleted file mode " + mode1).append("\n"); //$NON-NLS-1$//$NON-NLS-2$