use of com.google.gerrit.server.patch.ComparisonType in project gerrit by GerritCodeReview.
the class CommentContextLoader method getContextForMergeList.
private CommentContext getContextForMergeList(ObjectReader reader, RevCommit commit, Range commentRange, int contextPadding) throws IOException {
ComparisonType cmp = ComparisonType.againstParent(1);
Text text = Text.forMergeList(cmp, reader, commit);
return createContext(text, commentRange, contextPadding, FileContentUtil.TEXT_X_GERRIT_MERGE_LIST);
}
Aggregations