libgit2/tests-clar/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
..
ignore.c Add cache busting to attribute cache 2012-05-10 11:12:43 -07:00
single.c Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
status_data.h Fix git_status_file for files that start with a character > 0x7f 2012-06-07 09:50:19 -04:00
status_helpers.c Add cache busting to attribute cache 2012-05-10 11:12:43 -07:00
status_helpers.h Add cache busting to attribute cache 2012-05-10 11:12:43 -07:00
submodules.c Ranged iterators and rewritten git_status_file 2012-05-15 14:34:15 -07:00
worktree.c Fix bugs for status with spaces and reloaded attrs 2012-05-24 17:14:56 -07:00