class GitCommit {

  public GitCommitResponse commit(File repository, GitCommitOptions options, String message)
      throws IOException, JavaGitException {

    CheckUtilities.checkNullArgument(repository, "repository");
    CheckUtilities.checkStringArgument(message, "message");
    CheckUtilities.checkNullArgument(options, "options");

    IClient client = ClientManager.getInstance().getPreferredClient();
    IGitCommit gitCommit = client.getGitCommitInstance();
    return gitCommit.commit(repository, options, message);
  }

}