public void addFile ( String filename , int linesAdded , int linesDeleted ) { CommitFile commitFile = new CommitFile ( filename , linesAdded , linesDeleted ) ; if ( files == null ) { files = new ArrayList < CommitFile > ( ) ; } this . files . add ( commitFile ) ; }
This adds a file to the list of files affected by a particular commit .