package patch
Patch library purely in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
patch-3.0.0-alpha1.tar.gz
md5=03aa87f8500c9caf4a73b2299c19b514
sha512=77d66ec2bab2e079a2f45bd9f89129a0ab95dffdd148aec385a174ed50bde98131823f678aa5c685c1f25349c7927b6015df1b9e8da659fdd1030012f0be9a55
doc/CHANGES.html
v3.0.0-alpha1 (2025-03-06)
Ensure compatibility with GNU Patch as much as possible:
- Fix the parsing of filenames coming from GNU or git diffs (#20 @kit-ty-kate @Leonidas-from-XIV)
- Detect file creation/deletion when parsing patch files created with
diff -N
(#20 @kit-ty-kate) - Add a
~p
parameter toPatch.parse
mimicking the behaviour ofpatch -p<num>
(#9 @kit-ty-kate @hannesm) - Allow empty lines to be equivalent to a simple newline in both mine/their (#22 @kit-ty-kate)
- Allow the tab character to be used in place of
\t
(#22 @kit-ty-kate) Patch.apply
: allow unclean application using the default GNU Patch algorithm (#22 @kit-ty-kate)- Allow up to 3 assumed-empty lines missing at the end of each hunk (#22 @kit-ty-kate)
- Handle git extensions only when in presence of a git header (#22 @kit-ty-kate)
- Add support for the empty file deletion git extension (#22 @kit-ty-kate)
- Add support for spaces instead of tabs between filename and date (#22 @kit-ty-kate)
- Start the diff start index from 1 (0 if empty) (#22 @kit-ty-kate)
- Quote special characters from filename when pretty-printing them (#21 @kit-ty-kate)
- Refuse context diffs and only accept unified diffs (#22 @kit-ty-kate)
Patch.pp_hunk
: Add missing final end of line character (#22 @kit-ty-kate)Patch.pp_operation
: Print the git header when using a git extension (#22 @kit-ty-kate)
v2.0.0 (2024-04-03)
- Add support for git format-patch headers (#7 @kit-ty-kate)
- Pretty-printer: fix no_newline support (#11 @kit-ty-kate)
- Various fixes to the diff parser ('---' mid diff, hunks, no newline at end of file) (#10 @kit-ty-kate)
- Add Patch.pp_list (#13 @kit-ty-kate)
- Merge Edit and Rename operations (#14 @kit-ty-kate)
- Add a diff implementation (#12 @kit-ty-kate)
- Rename to_diffs to parse (#16 @kit-ty-kate)
- Provide API docs, tweak documentation (@hannesm)
v1.0.1 (2022-10-27)
- Remove unnecessary bytes dependency
- Fix compilation of examples
- Use GitHub actions instead of travis
v1.0.0 (2019-12-21)
- Initial public release
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page