/** * It returns a <code>GitStatusResonse</code> object that contains all the details of the output * of <git-status> 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. */ 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); }