code: public void addToNewFilesToCommit(File file) {
      newFilesToCommit.add(file);
      fileToStatus.put(file, Status.NEW_TO_COMMIT);
    }
docs: Adds a file to the list of new files that are ready to be committed next time &lt;git-commit&gt;
  command is run.
  
  @param file
  <code>File</code> to be added to the list.