https://github.com/eugenehp/patch-apply-rs
Parse and apply patches in the unified diff format
https://github.com/eugenehp/patch-apply-rs
apply diff git patch rust
Last synced: 10 months ago
JSON representation
Parse and apply patches in the unified diff format
- Host: GitHub
- URL: https://github.com/eugenehp/patch-apply-rs
- Owner: eugenehp
- License: mit
- Created: 2024-11-17T10:03:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-17T11:34:37.000Z (over 1 year ago)
- Last Synced: 2025-07-04T11:55:53.668Z (12 months ago)
- Topics: apply, diff, git, patch, rust
- Language: Rust
- Homepage: https://crates.io/crates/patch-apply
- Size: 95.7 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Patch
[](https://github.com/eugenehp/patch-apply-rs/actions/workflows/checks.yml)
[](https://crates.io/crates/patch)
[](https://docs.rs/patch)
[](https://github.com/eugenehp/patch-apply-rs)
Rust crate for parsing, producing and applying patch files in the [Unified Format].
The parser attempts to be forgiving enough to be compatible with diffs produced
by programs like git. It accomplishes this by ignoring the additional code
context and information provided in the diff by those programs.
See the **[Documentation]** for more information and for examples.
[Unified Format]: https://www.gnu.org/software/diffutils/manual/html_node/Unified-Format.html
[Documentation]: https://docs.rs/patch-apply