use of com.intellij.openapi.vcs.update.UpdatedFiles in project intellij-community by JetBrains.
the class GitPushResultNotificationTest method notification.
private GitPushResultNotification notification(Map<GitRepository, GitPushRepoResult> map) {
boolean wasUpdatePerformed = ContainerUtil.exists(map.values(), aNew -> aNew.getUpdateResult() != null);
UpdatedFiles updatedFiles = UpdatedFiles.create();
if (wasUpdatePerformed) {
updatedFiles.getTopLevelGroups().get(0).add("file.txt", "Git", null);
}
return GitPushResultNotification.create(myProject, new GitPushResult(map, updatedFiles, null, null), map.size() > 1);
}
Aggregations