summaryrefslogtreecommitdiff
path: root/tests/diff/parse.c
Commit message (Collapse)AuthorAgeFilesLines
* Teach `git_patch_from_diff` about parsed diffsethomson/patch_from_diffEdward Thomson2016-08-241-0/+45
| | | | | Ensure that `git_patch_from_diff` can return the patch for parsed diffs, not just generate a patch for a generated diff.
* patch: show copy information for identical copiesEdward Thomson2016-06-251-0/+5
| | | | | | | When showing copy information because we are duplicating contents, for example, when performing a `diff --find-copies-harder -M100 -B100`, then show copy from/to lines in a patch, and do not show context. Ensure that we can also parse such patches.
* patch::parse: test diff with exact rename and copyEdward Thomson2016-06-251-0/+5
|
* patch::parse: test diff with simple renameEdward Thomson2016-06-251-12/+27
|
* diff::parse tests: test parsing a diffEdward Thomson2016-06-251-0/+68
| | | | | Test that we can create a diff file, then parse the results and that the two are identical in-memory.
* introduce `git_diff_from_buffer` to parse diffsEdward Thomson2016-05-261-0/+60
Parse diff files into a `git_diff` structure.