text: public long size(DiffEntry.Side side, DiffEntry ent) throws IOException {switch (side) {case OLD:return oldSource.size(ent.oldPath, ent.oldId.toObjectId());case NEW:return newSource.size(ent.newPath, ent.newId.toObjectId());default:throw new IllegalArgumentException();}}