javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java
public boolean addAddedFile(File pathToFile, String mode) {
    if (null == pathToFile) {
      return false;
    }

    return addedFiles.add(new AddedOrDeletedFile(pathToFile, mode));
  }
public boolean addAddedFile(File pathToFile, String mode) {
    if (null == pathToFile) {
      return false;
    }

    return addedFiles.add(new AddedOrDeletedFile(pathToFile, mode));
  }
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.

@param pathToFile
The path to the file from the root of the repository.
@param mode
The mode of the file.
@return False if the <code>pathToFile</code> is null or length zero. True otherwise.
Add the information about a newly added file in the repository for a given commit .