/** * Stage all files and commit (including untracked) * * @param comment Developer's comment about the change * @return <code>GitCommitResponse</code> object * @throws IOException I/O operation fails * @throws JavaGitException git command fails */ public GitCommitResponse addAndCommitAll(String comment) throws IOException, JavaGitException { return rootDir.commit(comment); }
/** * Adds all known and modified files in the working directory to the index. * * @return response from git add */ public GitAddResponse add() throws IOException, JavaGitException { return rootDir.add(); }