summaryrefslogtreecommitdiff
path: root/tests/diff/drivers.c
Commit message (Collapse)AuthorAgeFilesLines
* diff: don't error out on an invalid regexcmn/regex-nofailCarlos Martín Nieto2015-08-151-0/+26
| | | | | | When parsing user-provided regex patterns for functions, we must not fail to provide a diff just because a pattern is not well formed. Ignore it instead.
* git_path_dirload: use git_path_diriterEdward Thomson2015-05-011-1/+1
|
* Update Javascript userdiff driver and testsRussell Belfer2014-01-271-12/+16
| | | | | | | | | Writing a sample Javascript driver pointed out some extra whitespace handling that needed to be done in the diff driver. This adds some tests with some sample javascript code that I pulled off of GitHub just to see what would happen. Also, to clean up the userdiff test data, I did a "git gc" and packed up the test objects.
* Move userdiff tests to be data drivenRussell Belfer2014-01-241-47/+50
| | | | | | This moves the expected and actual test data along with the source data for the userdiff tests into the tests/resources/userdiff test repo and updates the test to use that.
* Implement matched pattern extract for fn headersRussell Belfer2014-01-241-2/+2
|
* Fix filemode updating in diff textRussell Belfer2014-01-241-7/+15
|
* Import git drivers and test HTML driverRussell Belfer2014-01-241-24/+99
| | | | | | | | | | Reorganize the builtin driver table slightly so that core Git builtin definitions can be imported verbatim. Then take a few of the core Git drivers and pull them in. This also creates a test of diffs with the builtin HTML driver which led to some small error handling fixes in the driver selection logic.
* Drop git_patch_to_strNicolas Hake2014-01-221-23/+22
| | | | | | | It's hard or even impossible to correctly free the string buffer allocated by git_patch_to_str in some circumstances. Drop the function so people have to use git_patch_to_buf instead - git_buf has a dedicated destructor.
* Rename tests-clar to testsBen Straub2013-11-141-0/+163