Skip to content
niklasmarderxPublic

About

Understand and apply diffs — colored output, context-aware, built in Rust

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

patchwork

CI License: MIT OR Apache-2.0 Rust stable

Understand and apply diffs — colored output, context-aware, built in Rust.

Commands

# Explain what a diff does in plain English
patchwork explain changes.patch
git diff | patchwork explain -

# Colored side-by-side diff between two files
patchwork diff old.rs new.rs

# Apply a patch to files on disk
patchwork apply changes.patch --root ./my-project

# Preview without writing
patchwork apply changes.patch --dry-run

Install

cargo install --git https://github.com/niklasmarderx/patchwork

Example output

● src/main.rs
  +1 / -1 line(s) across 1 hunk(s)
  Hunk 1 (line 3): replaces 1 line(s) with 1

License

Licensed under either of MIT or Apache-2.0 at your option.

About

Understand and apply diffs — colored output, context-aware, built in Rust

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages