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.
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.