jgit/org.eclipse.jgit/resources/org/eclipse/jgit
Thomas Wolf 10ac449911 ApplyCommand: support binary patches
Implement applying binary patches. Handles both literal and delta
patches. Note that C git also runs binary files through the clean
and smudge filters. Implement the same safeguards against corrupted
patches as in C git: require the full OIDs to be present in the patch
file, and apply a binary patch only if both pre- and post-image hashes
match.

Add tests for applying literal and delta patches.

Bug: 371725
Change-Id: I71dc214fe4145d7cc8e4769384fb78c7d0d6c220
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2021-05-26 00:38:00 +02:00
..
gitrepo/internal RepoText: Remove unused externalized string 2019-09-07 01:19:06 +02:00
internal ApplyCommand: support binary patches 2021-05-26 00:38:00 +02:00
util/sha1 Move SHA1 compress/recompress files to resource folder 2017-03-18 16:46:58 +01:00