* (left) side a delta
*/
protected IFileRevision getLocalFileRevision(IFile local) {
final GitSynchronizeData data = gsds.getData(local.getProject());
if (data.shouldIncludeLocal())
return new WorkspaceFileRevision(local);
try {
return asFileState(getSourceTree().getResourceVariant(local));
} catch (TeamException e) {
String error = NLS
.bind(CoreText.GitResourceVariantTreeSubscriber_CouldNotFindSourceVariant,
local.getName());
Activator.logError(error, e);
// fall back to the working tree version
return new WorkspaceFileRevision(local);
}
}