GitCommandResult (@NotNull GitRepository repository, @NotNull String currentName, @NotNull String newName, GitLineHandlerListener @NotNull ... listeners) { GitLineHandler h = new GitLineHandler(repository.getProject(), repository.getRoot(), GitCommand.BRANCH); h.setSilent(false); h.setStdoutSuppressed(false); h.addParameters("-m", currentName, newName); return runCommand(h); }