summaryrefslogtreecommitdiff
path: root/src/apply.c
Commit message (Collapse)AuthorAgeFilesLines
* common: use PRIuZ for size_t in `giterr_set` callsPatrick Steinhardt2016-11-141-1/+1
|
* diff: treat binary patches with no data specialethomson/diff-read-empty-binaryEdward Thomson2016-09-051-1/+9
| | | | | | 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.
* apply: fix warning when initializing patch imagesPatrick Steinhardt2016-08-051-1/+1
|
* apply: safety check files that dont end with eolEdward Thomson2016-07-241-1/+4
|
* apply: compare preimage to imageEdward Thomson2016-07-241-1/+1
| | | | Compare the preimage to the image; don't compare the preimage to itself.
* vector: more sensible names for `grow_at`/`shrink_at`Edward Thomson2016-05-261-2/+2
|
* patch application: drop unnecessary `patch_image_init`Edward Thomson2016-05-261-10/+2
|
* patch: use delta's old_file/new_file membersEdward Thomson2016-05-261-1/+1
| | | | | No need to replicate the old_file/new_file members, or plumb them strangely up.
* patch: abstract patches into diff'ed and parsedEdward Thomson2016-05-261-6/+8
| | | | | | Patches can now come from a variety of sources - either internally generated (from diffing two commits) or as the results of parsing some external data.
* patch application: apply binary patchesEdward Thomson2016-05-261-4/+91
| | | | | | Handle the application of binary patches. Include tests that produce a binary patch (an in-memory `git_patch` object), then enusre that the patch applies correctly.
* apply: handle empty patchesEdward Thomson2016-05-261-1/+4
| | | | When a patch is empty, simply copy the source into the destination.
* Introduce git_apply_patchEdward Thomson2016-05-261-0/+282
The beginnings of patch application from an existing (diff-created) git_patch object: applies the hunks of a git_patch to a buffer.