public GitCommitResponse commit ( String comment ) throws IOException , JavaGitException { // first add the file add ( ) ; // create a list of filenames and add yourself to it List < File > list = new ArrayList < File > ( ) ; list . add ( relativePath ) ; GitCommit gitCommit = new GitCommit ( ) ; return gitCommit . commitOnly ( workingTree . getPath ( ) , comment , list ) ; }
Commits the file system object