mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git: cleanup: inline some old method with the only usage
GitOrigin-RevId: 928b762a50ca5c2363b25de29785607bda5853d5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d7eee72ec0
commit
9873b6772b
@@ -15,6 +15,7 @@ import com.intellij.openapi.vfs.VfsUtil;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import git4idea.GitRevisionNumber;
|
||||
import git4idea.GitUtil;
|
||||
import git4idea.GitVcs;
|
||||
import git4idea.commands.*;
|
||||
import git4idea.merge.GitMergeUtil;
|
||||
import git4idea.repo.GitRepository;
|
||||
@@ -103,7 +104,7 @@ abstract class GitMergeAction extends GitRepositoryAction {
|
||||
List<VcsException> exceptions = new ArrayList<>();
|
||||
GitMergeUtil.showUpdates(project, exceptions, root, currentRev, beforeLabel, getActionName(), ActionInfo.UPDATE);
|
||||
repository.update();
|
||||
showErrors(project, getActionName(), exceptions);
|
||||
GitVcs.getInstance(project).showErrors(exceptions, getActionName());
|
||||
}
|
||||
else if (localChangesDetector.wasMessageDetected()) {
|
||||
LocalChangesWouldBeOverwrittenHelper.showErrorNotification(project, repository.getRoot(), getActionName(),
|
||||
|
||||
@@ -60,10 +60,6 @@ public abstract class GitRepositoryAction extends DumbAwareAction {
|
||||
return currentRepository != null ? currentRepository.getRoot() : roots.get(0);
|
||||
}
|
||||
|
||||
protected static void showErrors(@NotNull Project project, @NotNull String actionName, @NotNull List<VcsException> exceptions) {
|
||||
GitVcs.getInstance(project).showErrors(exceptions, actionName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated "final tasks" are not called for all actions anymore.
|
||||
* They should be called by certain actions manually if and when needed.
|
||||
|
||||
Reference in New Issue
Block a user