summaryrefslogtreecommitdiff
path: root/tests-clar/diff/pathspec.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename diff objects and split patch.hRussell Belfer2013-10-111-4/+4
| | | | | | This makes no functional change to diff but renames a couple of the objects and splits the new git_patch (formerly git_diff_patch) into a new header file.
* tests: Fix memory leaknulltoken2013-07-131-0/+1
|
* Fix warnings on Win64Russell Belfer2013-07-111-7/+7
|
* Add git_pathspec_match_diff APIRussell Belfer2013-07-101-0/+92
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.