4 releases (2 breaking)
0.4.1 | May 23, 2024 |
---|---|
0.4.0 | Feb 2, 2024 |
0.3.0 | Dec 30, 2023 |
0.2.1 | Oct 20, 2023 |
#1140 in Development tools
228 downloads per month
66KB
918 lines
hunk
A simple tool for filtering diff hunks.
Usage
To show only hunks that contain PATTERN, run ... | hunk PATTERN
where ...
produces a git-compatible diff.
Examples
Show hunks from the latest 10 commits of the current git branch that contain
the string "player": git log -p -n 10 --color | hunk player
Building
cargo build
Testing
cargo test
Dependencies
~1.2–7.5MB
~55K SLoC