javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckoutResponse.java
public File getAddedFile(int index) {
    CheckUtilities.checkIntIndexInListRange(addedFiles, index);
    return addedFiles.get(index);
  }
public File getAddedFile(int index) {
    CheckUtilities.checkIntIndexInListRange(addedFiles, index);
    return addedFiles.get(index);
  }
Returns the file at a given location in the addedFiles list

@param index
in the list and should be positive and less than no. of files added.
@return added file at the index in addedFiles list.