libgit2/tests-clar/diff
Russell Belfer 41a82592ef Ranged iterators and rewritten git_status_file
The goal of this work is to rewrite git_status_file to use the
same underlying code as git_status_foreach.

This is done in 3 phases:

1. Extend iterators to allow ranged iteration with start and
   end prefixes for the range of file names to be covered.
2. Improve diff so that when there is a pathspec and there is
   a common non-wildcard prefix of the pathspec, it will use
   ranged iterators to minimize excess iteration.
3. Rewrite git_status_file to call git_status_foreach_ext
   with a pathspec that covers just the one file being checked.

Since ranged iterators underlie the status & diff implementation,
this is actually fairly efficient.  The workdir iterator does
end up loading the contents of all the directories down to the
single file, which should ideally be avoided, but it is pretty
good.
2012-05-15 14:34:15 -07:00
..
blob.c Fix MSVC compilation issue 2012-05-09 21:14:49 +02:00
diff_helpers.c diff: fix the diffing of two identical blobs 2012-05-07 12:18:33 +02:00
diff_helpers.h diff: fix the diffing of two identical blobs 2012-05-07 12:18:33 +02:00
index.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
iterator.c Ranged iterators and rewritten git_status_file 2012-05-15 14:34:15 -07:00
patch.c Fix usage of "new" for fieldname in public header 2012-05-02 15:34:58 -07:00
tree.c diff: fix the diffing of two identical blobs 2012-05-07 12:18:33 +02:00
workdir.c Update clar and remove old helpers 2012-04-17 10:35:11 -07:00