mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git: restore adding listeners to the cherry-pick command
Accidentally removed during cleanup in 749b60a9 GitOrigin-RevId: 88adfdca19549c6f5d9b5eb474e9abe25939e21b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b2cc69dd49
commit
eef33a97be
@@ -14,6 +14,7 @@ import git4idea.GitUtil;
|
||||
import git4idea.GitVcs;
|
||||
import git4idea.commands.Git;
|
||||
import git4idea.commands.GitCommandResult;
|
||||
import git4idea.commands.GitLineHandlerListener;
|
||||
import git4idea.config.GitVcsApplicationSettings;
|
||||
import git4idea.config.GitVcsSettings;
|
||||
import git4idea.repo.GitRepository;
|
||||
@@ -44,7 +45,8 @@ public class GitCherryPicker extends VcsCherryPicker {
|
||||
public void cherryPick(@NotNull List<? extends VcsFullCommitDetails> commits) {
|
||||
GitApplyChangesProcess applyProcess = new GitApplyChangesProcess(myProject, commits, isAutoCommit(), "cherry-pick", "applied",
|
||||
(repository, commit, autoCommit, listeners) ->
|
||||
Git.getInstance().cherryPick(repository, commit.asString(), autoCommit, shouldAddSuffix(repository, commit)),
|
||||
Git.getInstance().cherryPick(repository, commit.asString(), autoCommit, shouldAddSuffix(repository, commit),
|
||||
listeners.toArray(new GitLineHandlerListener[0])),
|
||||
result -> isNothingToCommitMessage(result),
|
||||
(repository, commit) -> createCommitMessage(repository, commit),
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user