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 .