code: public void addToModifiedFilesToCommit(File file) {
      modifiedFilesToCommit.add(file);
      fileToStatus.put(file, Status.MODIFIED_TO_COMMIT);
    }
docs: Adds a file to list of files that are modified and will be committed next time
  &lt;git-commit&gt; is run.
  
  @param file
  <code>File</code> to be added to the list.