public boolean addAddedFile ( File pathToFile , String mode ) { if ( null == pathToFile ) { return false ; } return addedFiles . add ( new AddedOrDeletedFile ( pathToFile , mode ) ) ; }
Add the information about a newly added file in the repository for a given commit .