javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java
public GitAddResponse add(File repositoryPath, GitAddOptions options, List<File> paths)
            throws JavaGitException, IOException {
        CheckUtilities.checkFileValidity(repositoryPath);
        GitAddParser parser = new GitAddParser();
        List<String> command = buildCommand(repositoryPath, options, paths);
        GitAddResponseImpl response = (GitAddResponseImpl) ProcessUtilities.runCommand(repositoryPath,
                command, parser);

        if (options != null) {
            addDryRun(options, response);
        }
        return (GitAddResponse) response;
    }
public GitAddResponse add(File repositoryPath, GitAddOptions options, List<File> paths)
            throws JavaGitException, IOException {
        CheckUtilities.checkFileValidity(repositoryPath);
        GitAddParser parser = new GitAddParser();
        List<String> command = buildCommand(repositoryPath, options, paths);
        GitAddResponseImpl response = (GitAddResponseImpl) ProcessUtilities.runCommand(repositoryPath,
                command, parser);

        if (options != null) {
            addDryRun(options, response);
        }
        return (GitAddResponse) response;
    }
Implementations of &lt;git-add&gt; with options and list of files provided.