libgit2/tests-clar/resources/status
Adam Roben 8e60c712ac Fix git_status_file for files that start with a character > 0x7f
git_status_file would always return GIT_ENOTFOUND for these files.

The underlying bug was that git__strcmp_cb, which is used by
git_path_with_stat_cmp to sort entries in the working directory,
compares strings based on unsigned chars (this is confirmed by the
strcmp(3) manpage), while git__prefixcmp, which is used by
workdir_iterator__entry_cmp to search for a path in the working
directory, compares strings based on char. So the sort puts this path at
the end of the list, while the search expects it to be at the beginning.

The fix was simply to make git__prefixcmp compare using unsigned chars,
just like strcmp(3). The rest of the change is just adding/updating
tests.
2012-06-07 09:50:19 -04:00
..
.gitted Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
subdir Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
current_file Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
ignored_file Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
modified_file Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
new_file Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
staged_changes Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
staged_changes_modified_file Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
staged_delete_modified_file Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
staged_new_file Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
staged_new_file_modified_file Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
subdir.txt Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
Fix git_status_file for files that start with a character > 0x7f 2012-06-07 09:50:19 -04:00