libgit2/tests-clar/diff
Russell Belfer 2b672d5b64 Add git_pathspec_match_diff API
This adds an additional pathspec API that will match a pathspec
against a diff object.  This is convenient if you want to handle
renames (so you need the whole diff and can't use the pathspec
constraint built into the diff API) but still want to tell if the
diff had any files that matched the pathspec.

When the pathspec is matched against a diff, instead of keeping
a list of filenames that matched, instead the API keeps the list
of git_diff_deltas that matched and they can be retrieved via a
new API git_pathspec_match_list_diff_entry.

There are a couple of other minor API extensions here that were
mostly for the sake of convenience and to reduce dependencies
on knowing the internal data structure between files inside the
library.
2013-07-10 20:50:33 +02:00
..
blob.c Add "as_path" parameters to blob and buffer diffs 2013-06-17 17:03:34 -07:00
diff_helpers.c Diff hunk context off by one on long lines 2013-07-05 16:59:38 -07:00
diff_helpers.h More diff rename tests; better split swap handling 2013-05-23 15:06:07 -07:00
diffiter.c Replace diff delta binary with flags 2013-02-20 15:10:21 -08:00
drivers.c Diff hunk context off by one on long lines 2013-07-05 16:59:38 -07:00
index.c Fix some leaks and (possibly) dangling pointers in tests 2012-12-19 08:04:31 +01:00
iterator.c Make iterators use GIT_ITEROVER & smart advance 2013-05-31 12:18:43 -07:00
notify.c Notify '*' pathspec correctly when diffing 2013-04-11 09:59:26 +02:00
patch.c Implement regex pattern diff driver 2013-06-11 11:22:22 -07:00
pathspec.c Add git_pathspec_match_diff API 2013-07-10 20:50:33 +02:00
rename.c Fix compilation warnings 2013-06-29 13:27:55 +02:00
submodules.c Fix bug marking submodule diffs as unmodified 2013-06-27 07:38:27 -07:00
tree.c Improve diff config options handling 2013-04-23 12:57:30 -07:00
workdir.c Add test for fixed diff bug 2013-06-20 15:15:10 -07:00