javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCommit.java
public GitCommitResponseImpl commitAll(File repository, String message) throws IOException,
      JavaGitException {
    CheckUtilities.checkNullArgument(repository, "repository");
    CheckUtilities.checkStringArgument(message, "message");

    IClient client = ClientManager.getInstance().getPreferredClient();
    IGitCommit gitCommit = client.getGitCommitInstance();
    return gitCommit.commitAll(repository, message);
  }
public GitCommitResponseImpl commitAll(File repository, String message) throws IOException,
      JavaGitException {
    CheckUtilities.checkNullArgument(repository, "repository");
    CheckUtilities.checkStringArgument(message, "message");

    IClient client = ClientManager.getInstance().getPreferredClient();
    IGitCommit gitCommit = client.getGitCommitInstance();
    return gitCommit.commitAll(repository, message);
  }
Automatically stage all tracked files that have been changed and then commit all files staged
in the git repository's index.

@param repository
A <code>File</code> instance for the path to the repository root (the parent
directory of the .git directory) or a sub-directory in the working tree of the
repository to commit against. This argument must represent the absolute path to the
desired directory as returned by the <code>File.getPath()</code> method. If null is
passed, a <code>NullPointerException</code> will be thrown.
@param message
The message to attach to the commit. A non-zero length argument is required for this
parameter, otherwise a <code>NullPointerException</code> or
<code>IllegalArgumentException</code> will be thrown.
@return The results from the commit.
@exception IOException
There are many reasons for which an <code>IOException</code> may be thrown.
Examples include:
<ul>
<li>a directory doesn't exist</li>
<li>access to a file is denied</li>
<li>a command is not found on the PATH</li>
</ul>
@exception JavaGitException
Thrown when there is an error making the commit.