final List<Change> totalDiff;
CommitDiffBuilder.ChangesProvider changesProvider = new ChangesWithCommitMessageProvider(
gerritGitUtil, project, selectedChange);
if (gitCommits.size() == 1) {
final GitCommit gitCommit = Iterables.getLast(gitCommits);
totalDiff = changesProvider.provide(gitCommit);
} else {
GitCommit base = gitCommits.get(0);
GitCommit current = gitCommits.get(1);
totalDiff = new CommitDiffBuilder(base, current)
.withChangesProvider(changesProvider).getDiff();