javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatus.java
public GitStatusResponse getSingleFileStatus(File repositoryPath, File path) throws JavaGitException, IOException {
    CheckUtilities.checkFileValidity(repositoryPath);
    IClient client = ClientManager.getInstance().getPreferredClient();
    IGitStatus gitStatus = client.getGitStatusInstance();
    return gitStatus.getSingleFileStatus(repositoryPath, null, path);
  }
public GitStatusResponse getSingleFileStatus(File repositoryPath, File path) throws JavaGitException, IOException {
    CheckUtilities.checkFileValidity(repositoryPath);
    IClient client = ClientManager.getInstance().getPreferredClient();
    IGitStatus gitStatus = client.getGitStatusInstance();
    return gitStatus.getSingleFileStatus(repositoryPath, null, path);
  }
public GitStatusResponse getSingleFileStatus ( File repositoryPath , File path ) throws JavaGitException , IOException { CheckUtilities . checkFileValidity ( repositoryPath ) ; IClient client = ClientManager . getInstance ( ) . getPreferredClient ( ) ; IGitStatus gitStatus = client . getGitStatusInstance ( ) ; return gitStatus . getSingleFileStatus ( repositoryPath , null , path ) ; }
It returns a <code>GitStatusResonse</code> object that contains all the details of the output
of &lt;git-status&gt; command, but filters output for a single file

@param repositoryPath
Directory path to the root of the repository.
@param path
@return <code>GitStatusResponse</code> object
@throws JavaGitException
Exception thrown if the repositoryPath is null
@throws IOException
Exception is thrown if any of the IO operations fail.
It returns a <code > GitStatusResonse< / code > object that contains all the details of the output of &lt ; git - status&gt ; command but filters output for a single file