libgit2/tests/diff
Patrick Steinhardt ace3508f4c patch_generate: fix git_diff_foreach only working with generated diffs
The current logic of `git_diff_foreach` makes the assumption that all
diffs passed in are actually derived from generated diffs. With these
assumptions we try to derive the actual diff by inspecting either the
working directory files or blobs of a repository. This obviously cannot
work for diffs parsed from a file, where we do not necessarily have a
repository at hand.

Since the introduced split of parsed and generated patches, there are
multiple functions which help us to handle patches generically, being
indifferent from where they stem from. Use these functions and remove
the old logic specific to generated patches. This allows re-using the
same code for invoking the callbacks on the deltas.
2017-03-14 13:08:28 +01:00
..
binary.c Fix binary diffs 2015-09-25 10:37:41 -07:00
blob.c test-diff-blob: Pass proper nibble sizes 2015-06-26 16:52:26 +02:00
diff_helpers.c patch: show copy information for identical copies 2016-06-25 23:08:30 -04:00
diff_helpers.h diff::parse tests: test parsing a diff 2016-06-25 23:08:04 -04:00
diffiter.c Drop git_patch_to_str 2014-01-22 17:51:32 +01:00
drivers.c diff: don't error out on an invalid regex 2015-08-15 18:46:38 +02:00
format_email.c Merge branch 'pr/3809' 2016-10-09 16:05:48 +01:00
index.c tests: use legitimate object ids 2016-02-28 18:54:56 -05:00
notify.c Fix some warnings 2015-11-20 20:48:51 +02:00
parse.c patch_generate: fix git_diff_foreach only working with generated diffs 2017-03-14 13:08:28 +01:00
patch.c patch: emit binary patches (optionally) 2014-04-22 19:08:21 -05:00
pathspec.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
racediffiter.c Added clar test for #3568 2016-03-23 17:17:02 -04:00
rename.c patch: show copy information for identical copies 2016-06-25 23:08:30 -04:00
stats.c Merge branch 'pr/3809' 2016-10-09 16:05:48 +01:00
submodules.c diff: test submodules are found with trailing / 2016-04-02 13:02:41 -07:00
tree.c Add diff progress callback. 2015-11-02 16:33:58 -05:00
workdir.c tests: use legitimate object ids 2016-02-28 18:54:56 -05:00