librelist archives

« back to archive

Re: [libgit2] git_status_file with untracked files

Re: [libgit2] git_status_file with untracked files

From:
Dan Petitt
Date:
2013-03-29 @ 00:21
I am trying to get a status of files in my working directory and it seems 
that untracked files are returning GIT_ENOTFOUND (-3) instead of returning
GIT_OK and a status that indicates an untracked file.

Strangely I notice an issue that supposedly fixed this 10 months ago but I
am not seeing the expected results:
https://github.com/libgit2/libgit2/issues/728

Am I using this wrong?
 
Yes I was, stupid me; I was passing in the full path instead of a path 
relative to the working directory; apologies.