@Override
  public @NotNull GitCommandResult renameBranch(@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);
  }
@Override
  public @NotNull GitCommandResult renameBranch(@NotNull GitRepository repository,
                                                @NotNull String currentName,
                                                @NotNull String newName,
                                                GitLineHandlerListener @NotNull ... listeners)