GitCommandResult (@NotNull GitRepository repository, @NotNull String hash, boolean autoCommit, boolean addCherryPickedFromSuffix, GitLineHandlerListener @NotNull ... listeners) { final GitLineHandler handler = new GitLineHandler(repository.getProject(), repository.getRoot(), GitCommand.CHERRY_PICK); if (addCherryPickedFromSuffix) { handler.addParameters("-x"); } if (!autoCommit) { handler.addParameters("-n"); } handler.addParameters(hash); addListeners(handler, listeners); handler.setSilent(false); handler.setStdoutSuppressed(false); return runCommand(handler); }