summaryrefslogtreecommitdiff
path: root/tests/patch
Commit message (Collapse)AuthorAgeFilesLines
* diff: treat binary patches with no data specialethomson/diff-read-empty-binaryEdward Thomson2016-09-052-0/+11
| | | | | | When creating and printing diffs, deal with binary deltas that have binary data specially, versus diffs that have a binary file but lack the actual binary data.
* patch: differentiate not found and invalid patchesEdward Thomson2016-05-261-6/+75
|
* git_patch_parse_ctx: refcount the contextEdward Thomson2016-05-262-0/+2
|
* patch: `git_patch_from_patchfile` -> `git_patch_from_buffer`Edward Thomson2016-05-262-2/+4
|
* apply: test postimages that grow/shrink originalEdward Thomson2016-05-261-0/+89
| | | | | | | Test with some postimages that actually grow/shrink from the original, adding new lines or removing them. (Also do so without context to ensure that we can add/remove from a non-zero part of the line vector.)
* Introduce git_patch_options, handle prefixesEdward Thomson2016-05-262-4/+6
| | | | | Handle prefixes (in terms of number of path components) for patch parsing.
* patch_parse: test roundtrip patch parsing -> printEdward Thomson2016-05-261-0/+166
|
* patch_parse: ensure we can parse a patchEdward Thomson2016-05-261-0/+31
|
* apply: move patch data to patch_common.hEdward Thomson2016-05-261-0/+574