libgit2/tests-clar/resources
Russell Belfer bd4ca902b5 Fix status for files under ignored dirs
There was a bug where tracked files inside directories that were
inside ignored directories where not being found by status.  To
make that a little clearer, if you have a .gitignore with:

    ignore/

And then have the following files:

    ignore/dir/tracked     <-- actually a tracked file
    ignore/dir/untracked   <-- should be ignored

Then we would show the tracked file as being removed (because
when we got the to contained item "dir/" inside the ignored
directory, we decided it was safe to skip -- bzzt, wrong!).

This update is much more careful about checking that we are
not skipping over any prefix of a tracked item, regardless of
whether it is ignored or not.

As documented in diff.c, this commit does create behavior that
still differs from core git with regards to the handling of
untracked files contained inside ignored directories.  With
libgit2, those files will just not show up in status or diff.
With core git, those files don't show up in status or diff
either *unless* they are explicitly ignored by a .gitignore
pattern in which case they show up as ignored files.

Needless to say, this is a local behavior difference only, so
it should not be important and (to me) the libgit2 behavior
seems more consistent.
2012-05-16 17:08:59 -07:00
..
attr tests: add two binary blobs to attr test repository 2012-05-07 12:18:32 +02:00
attr_index Fixing issue with test data 2012-05-04 13:55:07 -07:00
bad_tag.git Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
config Backport more test data 2012-05-02 16:33:26 -07:00
duplicate.git Handle duplicate objects from different backends in git_odb_read_prefix(). 2012-05-12 15:50:19 -03:00
empty_bare.git Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
empty_standard_repo/.gitted Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
issue_592 Move test resources 2012-05-02 16:18:55 -07:00
issue_592b Fix status for files under ignored dirs 2012-05-16 17:08:59 -07:00
status Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
submodules Move test resources 2012-05-02 16:18:55 -07:00
testrepo/.gitted Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
testrepo.git Backport more test data 2012-05-02 16:33:26 -07:00
.gitattributes Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
.gitignore Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
big.index Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
gitgit.index Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00