Menu

#11 GitStatus getSingleFileStatus returns no files as untracked

open
nobody
5
2008-07-29
2008-07-29
Andrew Case
No

After I run getSingleFileStatus(someRepo, someFile) the GitStatusResponse.getUntrackedFiles() doesn't have the untracked files in it, even if the someFile I ran the command on, was an untracked file.

Discussion

  • Andrew Case

    Andrew Case - 2008-07-31

    Logged In: YES
    user_id=2143267
    Originator: YES

    Not sure if this is a bug or not after our discussion about who should parse the tree.

     
  • Maxim A.

    Maxim A. - 2008-08-02

    Logged In: YES
    user_id=2155661
    Originator: NO

    Andrew, what is the exact syntax that you are using? I'm using that method in the API and the API's unit test (/javagit/trunk/src/test/java/edu/nyu/cs/javagit/api/TestGitFileSystem.java) passes. Also, I added a new test to /javagit/trunk/src/test/java/edu/nyu/cs/javagit/api/commands/TestGitStatus.java and it passes as well:

    public void testSingelFileStatus() throws JavaGitException, IOException {
    File file = FileUtilities.createFile(repositoryDirectory, "single_file_test", "Test File1");
    GitStatusResponse response = gitStatus.getSingleFileStatus(repositoryDirectory, file);
    assertEquals("File should be untracked.", 1, response.getUntrackedFilesSize());
    }

    Please let me know what exactly you're using that you're not getting untracked file status.

     

Log in to post a comment.