javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java
public GitAddResponse addDryRun(File repositoryPath, List<File> paths) throws JavaGitException,
            IOException {
        GitAddOptions options = new GitAddOptions();
        options.setDryRun(true);
        return add(repositoryPath, options, paths);
    }
public GitAddResponse addDryRun(File repositoryPath, List<File> paths) throws JavaGitException,
            IOException {
        GitAddOptions options = new GitAddOptions();
        options.setDryRun(true);
        return add(repositoryPath, options, paths);
    }
Implementation of &lt;git-add&gt; dry run.