return new Data(mapping.getRepository(), repoRelativePath,
storage, null);
}
}
} else if (element instanceof CommitFileRevision) {
CommitFileRevision revision = (CommitFileRevision) element;
try {
IStorage storage = revision.getStorage(new NullProgressMonitor());
return new Data(revision.getRepository(),
revision.getGitPath(), storage, revision.getRevCommit());
} catch (CoreException e) {
// Don't enable
return null;
}
}