javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitStatus.java
public GitStatusResponse status(File repositoryPath, GitStatusOptions options, List<File> paths)
      throws JavaGitException, IOException {
    CheckUtilities.checkNullArgument(repositoryPath, "RepositoryPath");
    CheckUtilities.checkFileValidity(repositoryPath);
    List<String> command = buildCommandLine(options, paths);
    GitStatusParser parser;
    if (inputFile != null) {
      parser = new GitStatusParser(repositoryPath.getPath() + File.separator, inputFile);
    } else {
      parser = new GitStatusParser(repositoryPath.getPath() + File.separator);
    }
    GitStatusResponse response = (GitStatusResponseImpl) ProcessUtilities.runCommand(repositoryPath,
        command, parser);
    return response;
  }
public GitStatusResponse status(File repositoryPath, GitStatusOptions options, List<File> paths)
      throws JavaGitException, IOException {
    CheckUtilities.checkNullArgument(repositoryPath, "RepositoryPath");
    CheckUtilities.checkFileValidity(repositoryPath);
    List<String> command = buildCommandLine(options, paths);
    GitStatusParser parser;
    if (inputFile != null) {
      parser = new GitStatusParser(repositoryPath.getPath() + File.separator, inputFile);
    } else {
      parser = new GitStatusParser(repositoryPath.getPath() + File.separator);
    }
    GitStatusResponse response = (GitStatusResponseImpl) ProcessUtilities.runCommand(repositoryPath,
        command, parser);
    return response;
  }
public GitStatusResponse status ( File repositoryPath , GitStatusOptions options , List < File > paths ) throws JavaGitException , IOException { CheckUtilities . checkNullArgument ( repositoryPath , "RepositoryPath" ) ; CheckUtilities . checkFileValidity ( repositoryPath ) ; List < String > command = buildCommandLine ( options , paths ) ; GitStatusParser parser ; if ( inputFile != null ) { parser = new GitStatusParser ( repositoryPath . getPath ( ) + File . separator , inputFile ) ; } else { parser = new GitStatusParser ( repositoryPath . getPath ( ) + File . separator ) ; } GitStatusResponse response = ( GitStatusResponseImpl ) ProcessUtilities . runCommand ( repositoryPath , command , parser ) ; return response ; }
Implementation of <code>IGitStatus</code> method for getting the status of a list of files
Implementation of <code > IGitStatus< / code > method for getting the status of a list of files