void () { GitLineHandler h = new GitLineHandler(myProject, myRoot, GitCommand.RESET); h.addParameters("--merge"); GitCommandResult result = Git.getInstance().runCommand(h); if (!result.success()) { LOG.info("cancel git reset --merge: " + result.getErrorOutputAsJoinedString()); VcsNotifier.getInstance(myProject) .notifyError(MERGE_RESET_ERROR, GitBundle.message("notification.title.couldn.t.reset.merge"), result.getErrorOutputAsHtmlString()); } }