An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Patch

[![Checks](https://github.com/uniphil/patch-rs/actions/workflows/checks.yml/badge.svg)](https://github.com/eugenehp/patch-apply-rs/actions/workflows/checks.yml)
[![Crates.io Badge](https://img.shields.io/crates/v/patch.svg)](https://crates.io/crates/patch)
[![docs.rs](https://docs.rs/patch/badge.svg)](https://docs.rs/patch)
[![Lines of Code](https://tokei.rs/b1/github/eugenehp/patch-apply-rs)](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