use of git4idea.merge.MergeChangeCollector in project intellij-community by JetBrains.
the class GitPushOperation method collectUpdatedFiles.
private void collectUpdatedFiles(@NotNull UpdatedFiles updatedFiles, @NotNull GitRepository repository, @NotNull String preUpdatePosition) {
MergeChangeCollector collector = new MergeChangeCollector(myProject, repository.getRoot(), new GitRevisionNumber(preUpdatePosition));
ArrayList<VcsException> exceptions = new ArrayList<>();
collector.collect(updatedFiles, exceptions);
for (VcsException exception : exceptions) {
LOG.info(exception);
}
}
use of git4idea.merge.MergeChangeCollector in project intellij-community by JetBrains.
the class GitUpdater method markEnd.
protected void markEnd(VirtualFile root) throws VcsException {
// find out what have changed, this is done even if the process was cancelled.
final MergeChangeCollector collector = new MergeChangeCollector(myProject, root, myBefore);
final ArrayList<VcsException> exceptions = new ArrayList<>();
collector.collect(myUpdatedFiles, exceptions);
if (!exceptions.isEmpty()) {
throw exceptions.get(0);
}
}
Aggregations