Search in sources :

Example 1 with ComparisonType

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);
}
Also used : ComparisonType(com.google.gerrit.server.patch.ComparisonType) Text(com.google.gerrit.server.patch.Text)

Aggregations

ComparisonType (com.google.gerrit.server.patch.ComparisonType)1 Text (com.google.gerrit.server.patch.Text)1